Class BaseAdapter<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>>

java.lang.Object
io.datarouter.storage.node.adapter.BaseAdapter<PK,D,F,N>
All Implemented Interfaces:
Node<PK,D,F>, Comparable<Node<PK,D,F>>
Direct Known Subclasses:
BaseAvailabilityAdapter, BaseCallsiteAdapter, BaseCounterAdapter, BaseSanitizationAdapter, BaseTraceAdapter

public abstract class BaseAdapter<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>> extends Object implements Node<PK,D,F>
  • Field Details

    • backingNode

      protected final N extends Node<PK,D,F> backingNode
  • Constructor Details

    • BaseAdapter

      public BaseAdapter(N backingNode)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface Node<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>>
    • getFieldInfo

      public DatabeanFieldInfo<PK,D,F> getFieldInfo()
      Specified by:
      getFieldInfo in interface Node<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>>
    • getClientIds

      public List<ClientId> getClientIds()
      Specified by:
      getClientIds in interface Node<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>>
    • usesClient

      public boolean usesClient(String clientName)
      Specified by:
      usesClient in interface Node<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>>
    • getPhysicalNodes

      public List<? extends PhysicalNode<PK,D,F>> getPhysicalNodes()
      Specified by:
      getPhysicalNodes in interface Node<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>>
    • getPhysicalNodesForClient

      public List<? extends PhysicalNode<PK,D,F>> getPhysicalNodesForClient(String clientName)
      Specified by:
      getPhysicalNodesForClient in interface Node<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>>
    • getChildNodes

      public List<? extends Node<PK,D,F>> getChildNodes()
      Specified by:
      getChildNodes in interface Node<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>>
    • compareTo

      public int compareTo(Node<PK,D,F> that)
      Specified by:
      compareTo in interface Comparable<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>
    • getBackingNode

      public N getBackingNode()
    • getUnderlyingNode

      public N getUnderlyingNode()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getToStringPrefix

      protected abstract String getToStringPrefix()