Class Datarouter

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

@Singleton
public class Datarouter
extends java.lang.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 Summary

    Constructors 
    Constructor Description
    Datarouter()  
  • Method Summary

    Modifier and Type Method Description
    void assertRegistered​(Dao dao)  
    DatarouterClients getClientPool()  
    DatarouterNodes getNodes()  
    java.util.NavigableSet<PhysicalNode<?,​?,​?>> getWritableNodes()  
    <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)  
    void shutdown()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait