Class ArrayHistoryActor
java.lang.Object
com.inductiveautomation.ignition.gateway.tags.actors.ArrayEvaluator<HistoryActor>
com.inductiveautomation.historian.gateway.tags.actor.ArrayHistoryActor
- All Implemented Interfaces:
EvaluationContainer
,HistoryActor
,Diagnosable
,LicenseStateUpdateListener
,TagActor
,EventListener
public class ArrayHistoryActor
extends com.inductiveautomation.ignition.gateway.tags.actors.ArrayEvaluator<HistoryActor>
implements HistoryActor, Diagnosable, EvaluationContainer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe classification of this actor.void
addActor
(HistoryActor 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.void
configureGroupSettings
(TagGroup group) protected HistoryActor
createEvaluator
(int index) This is an "array evaluator", so we create an evaluator for each element- in our case, a HistoryActor for the atomic unit.void
destroy
(NodeContext context, ShutdownReason reason) Override to perform cleanup for actors that have set up extra configuration to process values.protected void
destroyEvaluator
(HistoryActor evaluator, int index) protected void
evaluate
(HistoryActor evaluator, int index, QualifiedValue arrayValue) int
protected LoggerEx
protected QualifiedPath
getPath
(int index) Returns a source for the indexed item, as if it were a top level tag.void
initialize
(NodeContext context, BoundPropertySet configuration) Override to set up any extra configuration that is needed before the actor can process a value.boolean
isInvalid
(PropertySet config) void
The LicenseState for the module specified in the LicenseStateChangeEvent has been updated.processValue
(QualifiedValue value) The value is generated by the source actor and then passed along to the next actor.void
removeActor
(HistoryActor actor) void
sampleDiagnostics
(DiagnosticsSample sample) Provides the sample upon which the object can set diagnostics information.void
shutdown()
void
start
(NodeContext nc, DataCollector session) Methods inherited from class com.inductiveautomation.ignition.gateway.tags.actors.ArrayEvaluator
evaluate, getCurrentCount, getEvaluators, getMaxCount, validateEvaluators, validateFor
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.inductiveautomation.historian.gateway.tags.actor.HistoryActor
onProcessingBlocked
Methods inherited from interface com.inductiveautomation.ignition.gateway.tags.evaluation.TagActor
noActionConfiguration, onLeasedChanged, onPathChanged
-
Constructor Details
-
ArrayHistoryActor
-
-
Method Details
-
getCollectionMode
- Specified by:
getCollectionMode
in interfaceEvaluationContainer
-
getCollectionSession
- Specified by:
getCollectionSession
in interfaceEvaluationContainer
-
start
- Specified by:
start
in interfaceEvaluationContainer
- Throws:
Exception
-
shutdown
- Specified by:
shutdown
in interfaceEvaluationContainer
- Throws:
Exception
-
getActorCount
public int getActorCount()- Specified by:
getActorCount
in interfaceEvaluationContainer
-
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
-
getLogger
- Specified by:
getLogger
in classcom.inductiveautomation.ignition.gateway.tags.actors.ArrayEvaluator<HistoryActor>
-
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
-
getPath
Returns a source for the indexed item, as if it were a top level tag. -
createEvaluator
This is an "array evaluator", so we create an evaluator for each element- in our case, a HistoryActor for the atomic unit.- Specified by:
createEvaluator
in classcom.inductiveautomation.ignition.gateway.tags.actors.ArrayEvaluator<HistoryActor>
-
destroyEvaluator
- Specified by:
destroyEvaluator
in classcom.inductiveautomation.ignition.gateway.tags.actors.ArrayEvaluator<HistoryActor>
-
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
-
evaluate
- Specified by:
evaluate
in classcom.inductiveautomation.ignition.gateway.tags.actors.ArrayEvaluator<HistoryActor>
-
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
-
addActor
- Specified by:
addActor
in interfaceEvaluationContainer
-
removeActor
- Specified by:
removeActor
in interfaceEvaluationContainer
-
getContainerSettings
- Specified by:
getContainerSettings
in interfaceEvaluationContainer
-
getProviderContext
- Specified by:
getProviderContext
in interfaceEvaluationContainer
-
isInvalid
- Specified by:
isInvalid
in interfaceEvaluationContainer
-
configureGroupSettings
- Specified by:
configureGroupSettings
in interfaceHistoryActor
-
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
-
licenseStateUpdated
Description copied from interface:LicenseStateUpdateListener
The LicenseState for the module specified in the LicenseStateChangeEvent has been updated. Module id of empty-string represents the license state for the Ignition platform itself.- Specified by:
licenseStateUpdated
in interfaceLicenseStateUpdateListener
- Parameters:
e
- The LicenseStateUpdateEvent
-