Class AtomicHistoryActor
java.lang.Object
com.inductiveautomation.historian.gateway.tags.actor.AtomicHistoryActor
- All Implemented Interfaces:
NodeSessionObserver
,HistoryActor
,Diagnosable
,TagActor
public class AtomicHistoryActor
extends Object
implements HistoryActor, Diagnosable, NodeSessionObserver
This is the primary history actor, it stores data for a single source.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe classification of this actor.void
Gives the actor a chance to report NodeAttribute traits for the tag it belongs to.boolean
attemptConfiguration
(NodeContext context, VersionedPropertySet config) Provides an opportunity to update the running actor on the fly.protected PropertySet
calculateMetadataToStore
(PropertySet config) protected void
configure
(PropertySet config) protected void
configureCompressor
(PropertySet config) void
configureGroupSettings
(TagGroup group) void
destroy
(NodeContext context, ShutdownReason reason) Override to perform cleanup for actors that have set up extra configuration to process values.protected boolean
hasChanged
(PropertySet config, Property<?> prop) void
initialize
(NodeContext context, BoundPropertySet config) Override to set up any extra configuration that is needed before the actor can process a value.void
maybeInstallTestClock
(Clock clock) void
onProcessingBlocked
(boolean isBlocked) processValue
(QualifiedValue value) The value is generated by the source actor and then passed along to the next actor.void
void
sampleDiagnostics
(DiagnosticsSample sample) Provides the sample upon which the object can set diagnostics information.void
storageStatusChanged
(Status newStatus) protected boolean
store
(List<QualifiedValue> values) Returns whether a value was stored.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.inductiveautomation.ignition.gateway.tags.evaluation.TagActor
noActionConfiguration, onLeasedChanged, onPathChanged
-
Constructor Details
-
AtomicHistoryActor
-
-
Method Details
-
maybeInstallTestClock
-
actorClassification
Description copied from interface:TagActor
The classification of this actor. A tag can only have one actor per classification.- Specified by:
actorClassification
in interfaceTagActor
-
hasChanged
-
initialize
Description copied from interface:TagActor
Override to set up any extra configuration that is needed before the actor can process a value. It should be expected that the configuration has NOT been altered since the actor was instantiated.- Specified by:
initialize
in interfaceTagActor
-
attemptConfiguration
Description copied from interface:TagActor
Provides an opportunity to update the running actor on the fly. If FALSE is returned from this class, the actor will be uninitialized, and if appropriate, a new one created.Therefore, the implementation should also verify that the configuration is still valid for this actor.
The config object provide is the entire configuration for the tag. However, it is provided as a Diff, which is relative to the last time configuration was attempted. This allows actors to quickly see if relevant properties have changed. Many actors will choose to simply rebuild themselves if the properties have changed, but given how often this function is called, it's important not to rebuild unnecessarily (hence, check the changed properties).
- Specified by:
attemptConfiguration
in interfaceTagActor
-
configureGroupSettings
- Specified by:
configureGroupSettings
in interfaceHistoryActor
-
onProcessingBlocked
public void onProcessingBlocked(boolean isBlocked) - Specified by:
onProcessingBlocked
in interfaceHistoryActor
-
configure
-
calculateMetadataToStore
-
configureCompressor
-
store
Returns whether a value was stored. -
processValue
Description copied from interface:TagActor
The value is generated by the source actor and then passed along to the next actor. If the return is null, the value change will be cancelled.- Specified by:
processValue
in interfaceTagActor
-
destroy
Description copied from interface:TagActor
Override to perform cleanup for actors that have set up extra configuration to process values. -
sampleDiagnostics
Description copied from interface:Diagnosable
Provides 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:
sampleDiagnostics
in interfaceDiagnosable
-
addBrowseTraits
Description copied from interface:TagActor
Gives the actor a chance to report NodeAttribute traits for the tag it belongs to. NodeAttributes are registered in the designer in order to modify the display of browse nodes.- Specified by:
addBrowseTraits
in interfaceTagActor
-
storageStatusChanged
- Specified by:
storageStatusChanged
in interfaceNodeSessionObserver
-
report
- Specified by:
report
in interfaceNodeSessionObserver
-