Class ErroredNodeSession
java.lang.Object
com.inductiveautomation.historian.gateway.api.storage.realtime.ErroredNodeSession
- All Implemented Interfaces:
DataNodeSession,Diagnosable
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.historian.gateway.api.storage.realtime.DataNodeSession
DataNodeSession.AvailabilityStatus -
Constructor Summary
ConstructorsConstructorDescriptionErroredNodeSession(QualityCode errorCode) ErroredNodeSession(String message) -
Method Summary
Modifier and TypeMethodDescriptionbooleanattachObserver(NodeSessionObserver observer) Attaches aNodeSessionObserverto the node session.booleandetachObserver(NodeSessionObserver observer) Detaches aNodeSessionObserverfrom the node session.Gets the current availability status of the node.processDataChange(DataPoint<?> dataPoint) Processes a data change for the node.processMetadataChange(MetadataPoint metadata) Processes a metadata change for the node.processSourceChange(SourceChangePoint sourceChange) Processes a change in the source configuration or state for the node.voidrelease()Closes the session, releasing any resources associated with it.reset()Resets the current session for the node to its initial state.Retires the node, indicating no further data changes are expected.voidsampleDiagnostics(DiagnosticsSample sample) Provides the sample upon which the object can set diagnostics information.
-
Constructor Details
-
ErroredNodeSession
-
ErroredNodeSession
-
-
Method Details
-
getAvailabilityStatus
Description copied from interface:DataNodeSessionGets the current availability status of the node.- Specified by:
getAvailabilityStatusin interfaceDataNodeSession- Returns:
- The current
DataNodeSession.AvailabilityStatusof the node.
-
processDataChange
Description copied from interface:DataNodeSessionProcesses a data change for the node.- Specified by:
processDataChangein interfaceDataNodeSession- Parameters:
dataPoint- The newDataPointcontaining the data change for the node.- Returns:
- A
CompletionStagethat, when completed, provides theQualityCodeof the operation. If the node's availability status isUNSUPPORTED, this will complete withQualityCode.Bad_Unsupported.
-
processSourceChange
Description copied from interface:DataNodeSessionProcesses a change in the source configuration or state for the node.- Specified by:
processSourceChangein interfaceDataNodeSession- Parameters:
sourceChange- TheSourceChangePointrepresenting the source change to process.- Returns:
- A
CompletionStagethat, when completed, provides theQualityCodeof the operation. If the node's availability status isUNSUPPORTED, this will complete withQualityCode.Bad_Unsupported.
-
processMetadataChange
Description copied from interface:DataNodeSessionProcesses a metadata change for the node.- Specified by:
processMetadataChangein interfaceDataNodeSession- Parameters:
metadata- TheMetadataPointcontaining the metadata change to process.- Returns:
- A
CompletionStagethat, when completed, provides theQualityCodeof the operation. If the node's availability status isUNSUPPORTED, this will complete withQualityCode.Bad_Unsupported.
-
reset
Description copied from interface:DataNodeSessionResets the current session for the node to its initial state. This operation may involve clearing any cached data.- Specified by:
resetin interfaceDataNodeSession- Returns:
- A
CompletionStagethat, when completed, provides theQualityCodeindicating the result of the reset operation. If the node's availability status isUNSUPPORTED, this will complete withQualityCode.Bad_Unsupported.
-
retireNode
Description copied from interface:DataNodeSessionRetires the node, indicating no further data changes are expected. After calling this method, it is expected thatrelease()will be called subsequently to properly clean up resources.- Specified by:
retireNodein interfaceDataNodeSession- Returns:
- A
CompletionStagethat, when completed, provides theQualityCodeof the operation. If the node's availability status isUNSUPPORTED, this will complete withQualityCode.Bad_Unsupported. - See Also:
-
release
public void release()Description copied from interface:DataNodeSessionCloses the session, releasing any resources associated with it.This method ensures that any resources allocated during the session's lifecycle are properly released. It should be called after
retireNode()to complete the cleanup process and prevent resource leaks.- Specified by:
releasein interfaceDataNodeSession
-
attachObserver
Description copied from interface:DataNodeSessionAttaches aNodeSessionObserverto the node session. This allows the observer to receive updates about the session's state and events.- Specified by:
attachObserverin interfaceDataNodeSession- Parameters:
observer- TheNodeSessionObserverto attach.- Returns:
trueif the observer was successfully attached,falseif already attached or if attachment failed.
-
detachObserver
Description copied from interface:DataNodeSessionDetaches aNodeSessionObserverfrom the node session. This stops the observer from receiving further updates about the session's state and events.- Specified by:
detachObserverin interfaceDataNodeSession- Parameters:
observer- TheNodeSessionObserverto detach.- Returns:
trueif the observer was successfully detached,falseif not attached or if detachment failed.
-
sampleDiagnostics
Description copied from interface:DiagnosableProvides the sample upon which the object can set diagnostics information. It is expected that the calling object will first callgetSubSample()in order to specify a useful identifier for this object's data.- Specified by:
sampleDiagnosticsin interfaceDiagnosable
-