Interface VariableStateNonConstHandler
public interface VariableStateNonConstHandler
Interface for a plug-in to
VariableManagementService
to handle variable persistent state.-
Method Summary
Modifier and TypeMethodDescriptionvoid
addVariable
(String deploymentId, String variableName, Variable variable, DataInputOutputSerde serde) getHasState
(Variable variable, int agentInstanceId) Returns the current variable state plus Boolean.TRUE if there is a current state since the variable may have the value of null; returns Boolean.FALSE and null if there is no current statevoid
removeState
(Variable variable, int agentInstanceId) void
removeVariable
(Variable variable, String deploymentId, Set<Integer> cps) void
Sets the new variable value
-
Method Details
-
addVariable
void addVariable(String deploymentId, String variableName, Variable variable, DataInputOutputSerde serde) -
getHasState
Returns the current variable state plus Boolean.TRUE if there is a current state since the variable may have the value of null; returns Boolean.FALSE and null if there is no current state- Parameters:
variable
- variableagentInstanceId
- agent instance id- Returns:
- indicator whether the variable is known and it's state, or whether it doesn't have state (false)
-
setState
Sets the new variable value- Parameters:
variable
- variableagentInstanceId
- agent instance idnewValue
- new variable value, null values allowed
-
removeState
-
removeVariable
-