Class DataCollectorDelegate
java.lang.Object
com.inductiveautomation.historian.gateway.api.storage.realtime.DataCollectorDelegate
- All Implemented Interfaces:
DataCollector
Sits between a collection session and its nodes and the tag actor, absorbing lifecycle gaps such
as a session created before the profiles load or a provider restarting.
The delegates hold the last metadata and value, so a node added later still registers the latest values.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcloseNode(QualifiedPath path) createNodeSession(QualifiedPath source, DataType dataType, PropertySet configuration) Creates a session for one data node, for data, metadata and source changes.executeDataCollection(CollectionContext context) Executes a periodic, one-time or heartbeat collection as described by the context.Returns the id that distinguishes this collector.protected voidreassignNodePath(SourceChangePoint sourceChange) shutdown()Shuts down in order: stops accepting points and sessions, flushes queued data, closes allDataNodeSessions, and releases resources.voidupdateStorageEngine(@Nullable StorageEngine storage)
-
Constructor Details
-
DataCollectorDelegate
-
-
Method Details
-
createNodeSession
public DataNodeSession createNodeSession(QualifiedPath source, DataType dataType, PropertySet configuration) Description copied from interface:DataCollectorCreates a session for one data node, for data, metadata and source changes.- Specified by:
createNodeSessionin interfaceDataCollector- Parameters:
source- the node's source pathdataType- the type of data the session handlesconfiguration- the session's configuration properties- Returns:
- the session
-
executeDataCollection
Description copied from interface:DataCollectorExecutes a periodic, one-time or heartbeat collection as described by the context.- Specified by:
executeDataCollectionin interfaceDataCollector- Parameters:
context- the identifiers, source, interval, timestamp and value origin of the collection- Returns:
- a stage that completes when collection finishes, or exceptionally on error
-
shutdown
Description copied from interface:DataCollectorShuts down in order: stops accepting points and sessions, flushes queued data, closes allDataNodeSessions, and releases resources. The collector is unusable afterwards.- Specified by:
shutdownin interfaceDataCollector- Returns:
- a stage that completes when shutdown finishes, or exceptionally on error
-
identifier
Description copied from interface:DataCollectorReturns the id that distinguishes this collector.- Specified by:
identifierin interfaceDataCollector
-
updateStorageEngine
-
closeNode
-
reassignNodePath
-