Package io.datarouter.storage.node
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>>
- All Superinterfaces:
java.lang.Comparable<Node<PK,D,F>>
- All Known Subinterfaces:
GroupQueueStorage.GroupQueueStorageNode<PK,D,F>,GroupQueueStorage.PhysicalGroupQueueStorageNode<PK,D,F>,IndexedMapStorage.IndexedMapStorageNode<PK,D,F>,IndexedMapStorage.PhysicalIndexedMapStorageNode<PK,D,F>,IndexedMapStorageReader.IndexedMapStorageReaderNode<PK,D,F>,IndexedMapStorageReader.PhysicalIndexedMapStorageReaderNode<PK,D,F>,IndexedMapStorageWriter.IndexedMapStorageWriterNode<PK,D,F>,IndexedMapStorageWriter.PhysicalIndexedMapStorageWriterNode<PK,D,F>,IndexedSortedMapStorage.IndexedSortedMapStorageNode<PK,D,F>,IndexedSortedMapStorage.PhysicalIndexedSortedMapStorageNode<PK,D,F>,IndexedSortedMapStorageReader.IndexedSortedMapStorageReaderNode<PK,D,F>,IndexedSortedMapStorageReader.PhysicalIndexedSortedMapStorageReaderNode<PK,D,F>,IndexedSortedMapStorageWriter.IndexedSortedMapStorageWriterNode<PK,D,F>,IndexedSortedMapStorageWriter.PhysicalIndexedSortedMapStorageWriterNode<PK,D,F>,IndexedStorage.IndexedStorageNode<PK,D,F>,IndexedStorage.PhysicalIndexedStorageNode<PK,D,F>,IndexedStorageReader.IndexedStorageReaderNode<PK,D,F>,IndexedStorageReader.PhysicalIndexedStorageReaderNode<PK,D,F>,IndexedStorageWriter.IndexedStorageWriterNode<PK,D,F>,IndexedStorageWriter.PhysicalIndexedStorageWriterNode<PK,D,F>,MapStorage.MapStorageNode<PK,D,F>,MapStorage.PhysicalMapStorageNode<PK,D,F>,MapStorageReader.MapStorageReaderNode<PK,D,F>,MapStorageReader.PhysicalMapStorageReaderNode<PK,D,F>,MapStorageWriter.MapStorageWriterNode<PK,D,F>,MapStorageWriter.PhysicalMapStorageWriterNode<PK,D,F>,PhysicalAdapterMixin<PK,D,F,N>,PhysicalNode<PK,D,F>,PhysicalSubEntitySortedMapStorageNode<EK,PK,D,F>,QueueStorage.PhysicalQueueStorageNode<PK,D,F>,QueueStorage.QueueStorageNode<PK,D,F>,QueueStorageWriter.PhysicalQueueStorageWriterNode<PK,D,F>,QueueStorageWriter.QueueStorageWriterNode<PK,D,F>,SortedMapStorage.PhysicalSortedMapStorageNode<PK,D,F>,SortedMapStorage.SortedMapStorageNode<PK,D,F>,SortedMapStorageReader.PhysicalSortedMapStorageReaderNode<PK,D,F>,SortedMapStorageReader.SortedMapStorageReaderNode<PK,D,F>,SortedMapStorageWriter.PhysicalSortedMapStorageWriterNode<PK,D,F>,SortedMapStorageWriter.SortedMapStorageWriterNode<PK,D,F>,SortedStorage.PhysicalSortedStorageNode<PK,D,F>,SortedStorage.SortedStorageNode<PK,D,F>,SortedStorageReader.PhysicalSortedStorageReaderNode<PK,D,F>,SortedStorageReader.SortedStorageReaderNode<PK,D,F>,SortedStorageWriter.PhysicalSortedStorageWriterNode<PK,D,F>,SortedStorageWriter.SortedStorageWriterNode<PK,D,F>,StorageWriter.StorageWriterNode<PK,D,F>,StreamStorage.PhysicalStreamStorageNode<PK,D,F>,SubEntitySortedMapStorageNode<EK,PK,D,F>,SubEntitySortedMapStorageReaderNode<EK,PK,D,F>,TallyStorage.PhysicalTallyStorageNode<PK,D,F>,TallyStorage.TallyStorageNode<PK,D,F>,TallyStorageReader.PhysicalTallyStorageReaderNode<PK,D,F>,TallyStorageReader.TallyStorageReaderNode<PK,D,F>,TallyStorageWriter.PhysicalTallyStorageWriterNode<PK,D,F>,TallyStorageWriter.TallyStorageWriterNode<PK,D,F>
- All Known Implementing Classes:
BaseAdapter,BaseAvailabilityAdapter,BaseCallsiteAdapter,BaseCounterAdapter,BaseIndexingNode,BaseIndexNode,BaseNode,BasePhysicalNode,BaseSanitizationAdapter,BaseTraceAdapter,IndexedSortedMapStorageCallsiteAdapter,IndexedSortedMapStorageCounterAdapter,IndexingMapStorageNode,IndexingSortedMapStorageNode,IndexMapStorageWriterListener,MapStorageCallsiteAdapter,MapStorageCounterAdapter,PhysicalGroupQueueStorageCounterAdapter,PhysicalGroupQueueStorageSanitizationAdapter,PhysicalGroupQueueStorageTraceAdapter,PhysicalIndexedSortedMapStorageAvailabilityAdapterFactory.PhysicalIndexedSortedMapStorageAvailabilityAdapter,PhysicalIndexedSortedMapStorageCallsiteAdapter,PhysicalIndexedSortedMapStorageCounterAdapter,PhysicalIndexedSortedMapStorageSanitizationAdapter,PhysicalIndexedSortedMapStorageSanitizationAdapter,PhysicalIndexedSortedMapStorageTraceAdapter,PhysicalMapStorageAvailabilityAdapterFactory.PhysicalMapStorageAvailabilityAdapter,PhysicalMapStorageCallsiteAdapter,PhysicalMapStorageCounterAdapter,PhysicalMapStorageReaderCallsiteAdapter,PhysicalMapStorageReaderCounterAdapter,PhysicalMapStorageReaderSanitizationAdapter,PhysicalMapStorageReaderTraceAdapter,PhysicalMapStorageSanitizationAdapter,PhysicalMapStorageTraceAdapter,PhysicalQueueStorageCounterAdapter,PhysicalQueueStorageSanitizationAdapter,PhysicalQueueStorageTraceAdapter,PhysicalSortedMapStorageAvailabilityAdapterFactory.PhysicalSortedMapStorageAvailabilityAdapter,PhysicalSortedMapStorageCallsiteAdapter,PhysicalSortedMapStorageCounterAdapter,PhysicalSortedMapStorageSanitizationAdapter,PhysicalSortedMapStorageTraceAdapter,PhysicalSubEntitySortedMapStorageAvailabilityAdapterFactory.PhysicalSubEntitySortedMapStorageAvailabilityAdapter,PhysicalSubEntitySortedMapStorageCallsiteAdapter,PhysicalSubEntitySortedMapStorageCounterAdapter,PhysicalSubEntitySortedMapStorageSanitizationAdapter,PhysicalSubEntitySortedMapStorageTraceAdapter,PhysicalTallyStorageCounterAdapter,PhysicalTallyStorageSanitizationAdapter,PhysicalTallyStorageTraceAdapter,QueueStorageWriterCounterAdapter,QueueStorageWriterSanitizationAdapter,QueueStorageWriterTraceAdapter,SortedMapStorageCallsiteAdapter,SortedMapStorageCounterAdapter,TallyStorageSanitizationAdapter,TallyStorageWriterCounterAdapter,TallyStorageWriterTraceAdapter
public 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>> extends java.lang.Comparable<Node<PK,D,F>>
A Node is the interface through which the application sends Databeans for serialization and storage. It ties together
a PrimaryKey type, a Databean type, a Fielder type. A Node can be a PhysicalNode or a virtual node, like
MasterSlaveNode, that forwards requests on to other nodes.
-
Method Summary
Modifier and Type Method Description java.util.List<? extends Node<PK,D,F>>getChildNodes()java.util.List<ClientId>getClientIds()DatabeanFieldInfo<PK,D,F>getFieldInfo()java.lang.StringgetName()java.util.List<? extends PhysicalNode<PK,D,F>>getPhysicalNodes()java.util.List<? extends PhysicalNode<PK,D,F>>getPhysicalNodesForClient(java.lang.String clientName)booleanusesClient(java.lang.String clientName)
-
Method Details
-
getName
java.lang.String getName() -
getFieldInfo
DatabeanFieldInfo<PK,D,F> getFieldInfo() -
getClientIds
java.util.List<ClientId> getClientIds() -
usesClient
boolean usesClient(java.lang.String clientName) -
getPhysicalNodes
java.util.List<? extends PhysicalNode<PK,D,F>> getPhysicalNodes() -
getPhysicalNodesForClient
java.util.List<? extends PhysicalNode<PK,D,F>> getPhysicalNodesForClient(java.lang.String clientName) -
getChildNodes
-