public class ContextControllerInitTerm extends java.lang.Object implements ContextController, ContextControllerConditionCallback
Modifier and Type | Field and Description |
---|---|
protected ContextControllerLifecycleCallback |
activationCallback |
protected int |
currentSubpathId |
protected java.util.Map<ContextControllerCondition,ContextControllerInitTermInstance> |
endConditions |
protected ContextControllerInitTermFactoryImpl |
factory |
protected int |
pathId |
protected ContextControllerCondition |
startCondition |
Constructor and Description |
---|
ContextControllerInitTerm(int pathId,
ContextControllerLifecycleCallback lifecycleCallback,
ContextControllerInitTermFactoryImpl factory) |
Modifier and Type | Method and Description |
---|---|
void |
activate(EventBean optionalTriggeringEvent,
java.util.Map<java.lang.String,java.lang.Object> optionalTriggeringPattern,
ContextControllerState controllerState,
ContextInternalFilterAddendum filterAddendum,
java.lang.Integer importPathId) |
static boolean |
compare(long savedStartTime,
java.util.Map<java.lang.String,java.lang.Object> savedProperties,
java.lang.Long savedEndTime,
long existingStartTime,
java.util.Map<java.lang.String,java.lang.Object> existingProperties,
java.lang.Long existingEndTime) |
void |
deactivate() |
void |
deletePath(ContextPartitionIdentifier identifier) |
protected boolean |
determineCurrentlyRunning(ContextControllerCondition startCondition) |
static java.util.Map<java.lang.String,java.lang.Object> |
getBuiltinProperties(java.lang.String contextName,
long startTime,
java.lang.Long endTime,
java.util.Map<java.lang.String,java.lang.Object> startEndpointData) |
ContextControllerFactory |
getFactory() |
protected MatchedEventMap |
getMatchedEventMap(java.util.Map<java.lang.String,java.lang.Object> builtinProperties) |
int |
getPathId() |
void |
importContextPartitions(ContextControllerState state,
int pathIdToUse,
ContextInternalFilterAddendum filterAddendum,
AgentInstanceSelector agentInstanceSelector) |
protected ContextControllerCondition |
makeEndpoint(ContextDetailCondition endpoint,
ContextInternalFilterAddendum filterAddendum,
boolean isStartEndpoint,
int subPathId) |
void |
rangeNotification(java.util.Map<java.lang.String,java.lang.Object> builtinProperties,
ContextControllerCondition originCondition,
EventBean optionalTriggeringEvent,
java.util.Map<java.lang.String,java.lang.Object> optionalTriggeringPattern,
EventBean optionalTriggeringEventPattern,
ContextInternalFilterAddendum filterAddendum) |
void |
visitSelectedPartitions(ContextPartitionSelector contextPartitionSelector,
ContextPartitionVisitor visitor) |
protected final int pathId
protected final ContextControllerLifecycleCallback activationCallback
protected final ContextControllerInitTermFactoryImpl factory
protected ContextControllerCondition startCondition
protected java.util.Map<ContextControllerCondition,ContextControllerInitTermInstance> endConditions
protected int currentSubpathId
public ContextControllerInitTerm(int pathId, ContextControllerLifecycleCallback lifecycleCallback, ContextControllerInitTermFactoryImpl factory)
public void importContextPartitions(ContextControllerState state, int pathIdToUse, ContextInternalFilterAddendum filterAddendum, AgentInstanceSelector agentInstanceSelector)
importContextPartitions
in interface ContextController
public void deletePath(ContextPartitionIdentifier identifier)
deletePath
in interface ContextController
public void activate(EventBean optionalTriggeringEvent, java.util.Map<java.lang.String,java.lang.Object> optionalTriggeringPattern, ContextControllerState controllerState, ContextInternalFilterAddendum filterAddendum, java.lang.Integer importPathId)
activate
in interface ContextController
protected ContextControllerCondition makeEndpoint(ContextDetailCondition endpoint, ContextInternalFilterAddendum filterAddendum, boolean isStartEndpoint, int subPathId)
public void visitSelectedPartitions(ContextPartitionSelector contextPartitionSelector, ContextPartitionVisitor visitor)
visitSelectedPartitions
in interface ContextController
public void rangeNotification(java.util.Map<java.lang.String,java.lang.Object> builtinProperties, ContextControllerCondition originCondition, EventBean optionalTriggeringEvent, java.util.Map<java.lang.String,java.lang.Object> optionalTriggeringPattern, EventBean optionalTriggeringEventPattern, ContextInternalFilterAddendum filterAddendum)
rangeNotification
in interface ContextControllerConditionCallback
protected MatchedEventMap getMatchedEventMap(java.util.Map<java.lang.String,java.lang.Object> builtinProperties)
protected boolean determineCurrentlyRunning(ContextControllerCondition startCondition)
public ContextControllerFactory getFactory()
getFactory
in interface ContextController
public int getPathId()
getPathId
in interface ContextController
public void deactivate()
deactivate
in interface ContextController
public static java.util.Map<java.lang.String,java.lang.Object> getBuiltinProperties(java.lang.String contextName, long startTime, java.lang.Long endTime, java.util.Map<java.lang.String,java.lang.Object> startEndpointData)
public static boolean compare(long savedStartTime, java.util.Map<java.lang.String,java.lang.Object> savedProperties, java.lang.Long savedEndTime, long existingStartTime, java.util.Map<java.lang.String,java.lang.Object> existingProperties, java.lang.Long existingEndTime)