Class Datarouter

java.lang.Object
io.datarouter.storage.Datarouter

@Singleton public class Datarouter extends Object
Datarouter is the top-level scope through which various components can share things like clients, configuration, and thread pools. Almost all applications will have a single Datarouter, though it is possible to have multiple contexts for modularized applications or large test suites.
  • Constructor Details

    • Datarouter

      public Datarouter()
  • Method Details

    • register

      public <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>, D extends io.datarouter.model.databean.Databean<PK, D>, F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK, D>, N extends Node<PK, D, F>> N register(N node)
    • assertRegistered

      public void assertRegistered(Dao dao)
    • shutdown

      public void shutdown()
    • getClientPool

      public DatarouterClients getClientPool()
    • getNodes

      public DatarouterNodes getNodes()