public class ContextControllerConditionPattern extends java.lang.Object implements ContextControllerCondition, PatternMatchCallback
Modifier and Type | Class and Description |
---|---|
static class |
ContextControllerConditionPattern.ConditionPatternMatchCallback |
Modifier and Type | Field and Description |
---|---|
protected EvalRootState |
patternStopCallback |
Constructor and Description |
---|
ContextControllerConditionPattern(EPServicesContext servicesContext,
AgentInstanceContext agentInstanceContext,
ContextDetailConditionPattern endpointPatternSpec,
ContextControllerConditionCallback callback,
ContextInternalFilterAddendum filterAddendum,
boolean startEndpoint,
ContextStatePathKey contextStatePathKey) |
Modifier and Type | Method and Description |
---|---|
void |
activate(EventBean optionalTriggeringEvent,
MatchedEventMap priorMatches,
long timeOffset,
boolean isRecoveringReslient) |
void |
deactivate() |
java.lang.Long |
getExpectedEndTime() |
boolean |
isImmediate() |
boolean |
isRunning() |
void |
matchFound(java.util.Map<java.lang.String,java.lang.Object> matchEvent,
EventBean optionalTriggeringEventPattern)
Indicate matching events.
|
protected EvalRootState patternStopCallback
public ContextControllerConditionPattern(EPServicesContext servicesContext, AgentInstanceContext agentInstanceContext, ContextDetailConditionPattern endpointPatternSpec, ContextControllerConditionCallback callback, ContextInternalFilterAddendum filterAddendum, boolean startEndpoint, ContextStatePathKey contextStatePathKey)
public void activate(EventBean optionalTriggeringEvent, MatchedEventMap priorMatches, long timeOffset, boolean isRecoveringReslient)
activate
in interface ContextControllerCondition
public void matchFound(java.util.Map<java.lang.String,java.lang.Object> matchEvent, EventBean optionalTriggeringEventPattern)
PatternMatchCallback
matchFound
in interface PatternMatchCallback
matchEvent
- contains a map of event tags and event objectsoptionalTriggeringEventPattern
- in case the pattern fired as a result of an event arriving, provides the eventpublic void deactivate()
deactivate
in interface ContextControllerCondition
public boolean isRunning()
isRunning
in interface ContextControllerCondition
public java.lang.Long getExpectedEndTime()
getExpectedEndTime
in interface ContextControllerCondition
public boolean isImmediate()
isImmediate
in interface ContextControllerCondition