public class ContextManagerNested extends java.lang.Object implements ContextManager, ContextControllerLifecycleCallback, ContextIteratorHandler, FilterFaultHandler
Constructor and Description |
---|
ContextManagerNested(ContextControllerFactoryServiceContext factoryServiceContext) |
Modifier and Type | Method and Description |
---|---|
void |
addStatement(ContextControllerStatementBase statement,
boolean isRecoveringResilient) |
ContextControllerInstanceHandle |
contextPartitionInstantiate(java.lang.Integer optionalContextPartitionId,
int subPathId,
java.lang.Integer importSubpathId,
ContextController originator,
EventBean optionalTriggeringEvent,
java.util.Map<java.lang.String,java.lang.Object> optionalTriggeringPattern,
java.lang.Object partitionKey,
java.util.Map<java.lang.String,java.lang.Object> contextProperties,
ContextControllerState states,
ContextInternalFilterAddendum filterAddendum,
boolean isRecoveringResilient,
ContextPartitionState state) |
void |
contextPartitionNavigate(ContextControllerInstanceHandle existingHandle,
ContextController originator,
ContextControllerState controllerState,
int exportedCPOrPathId,
ContextInternalFilterAddendum filterAddendum,
AgentInstanceSelector agentInstanceSelector,
byte[] payload) |
void |
contextPartitionTerminate(ContextControllerInstanceHandle contextNestedHandle,
java.util.Map<java.lang.String,java.lang.Object> terminationProperties,
boolean leaveLocksAcquired,
java.util.List<AgentInstance> agentInstances)
Provides the sub-context that ends.
|
void |
destroyStatement(java.lang.String statementName,
java.lang.String statementId) |
ContextStatePathDescriptor |
extractDestroyPaths(ContextPartitionSelector selector) |
ContextStatePathDescriptor |
extractPaths(ContextPartitionSelector selector) |
ContextStatePathDescriptor |
extractStopPaths(ContextPartitionSelector selector) |
java.util.Collection<java.lang.Integer> |
getAgentInstanceIds(ContextPartitionSelector contextPartitionSelector) |
ContextDescriptor |
getContextDescriptor() |
ContextPartitionVisitorStateWithPath |
getContextPartitionPathsInternal(ContextPartitionSelector selector) |
FilterSpecLookupable |
getFilterLookupable(EventType eventType) |
int |
getNumNestingLevels() |
java.util.Map<java.lang.String,ContextControllerStatementDesc> |
getStatements() |
void |
handleFilterFault(EventBean theEvent,
long version) |
void |
importStartPaths(ContextControllerState state,
AgentInstanceSelector agentInstanceSelector) |
java.util.Iterator<EventBean> |
iterator(java.lang.String statementId) |
java.util.Iterator<EventBean> |
iterator(java.lang.String statementId,
ContextPartitionSelector selector) |
void |
safeDestroy() |
SafeIterator<EventBean> |
safeIterator(java.lang.String statementId) |
SafeIterator<EventBean> |
safeIterator(java.lang.String statementId,
ContextPartitionSelector selector) |
void |
setContextPartitionRange(java.util.List<NumberSetParameter> partitionRanges) |
java.util.Map<java.lang.Integer,ContextPartitionDescriptor> |
startPaths(ContextPartitionSelector selector) |
void |
stopStatement(java.lang.String statementName,
java.lang.String statementId) |
public ContextManagerNested(ContextControllerFactoryServiceContext factoryServiceContext) throws ExprValidationException
ExprValidationException
public java.util.Map<java.lang.String,ContextControllerStatementDesc> getStatements()
getStatements
in interface ContextManager
public ContextDescriptor getContextDescriptor()
getContextDescriptor
in interface ContextManager
public int getNumNestingLevels()
getNumNestingLevels
in interface ContextManager
public java.util.Iterator<EventBean> iterator(java.lang.String statementId, ContextPartitionSelector selector)
iterator
in interface ContextIteratorHandler
public SafeIterator<EventBean> safeIterator(java.lang.String statementId, ContextPartitionSelector selector)
safeIterator
in interface ContextIteratorHandler
public java.util.Collection<java.lang.Integer> getAgentInstanceIds(ContextPartitionSelector contextPartitionSelector)
getAgentInstanceIds
in interface ContextManager
public void importStartPaths(ContextControllerState state, AgentInstanceSelector agentInstanceSelector)
importStartPaths
in interface ContextManager
public ContextStatePathDescriptor extractPaths(ContextPartitionSelector selector)
extractPaths
in interface ContextManager
public ContextStatePathDescriptor extractStopPaths(ContextPartitionSelector selector)
extractStopPaths
in interface ContextManager
public ContextStatePathDescriptor extractDestroyPaths(ContextPartitionSelector selector)
extractDestroyPaths
in interface ContextManager
public java.util.Map<java.lang.Integer,ContextPartitionDescriptor> startPaths(ContextPartitionSelector selector)
startPaths
in interface ContextManager
public ContextPartitionVisitorStateWithPath getContextPartitionPathsInternal(ContextPartitionSelector selector)
public void addStatement(ContextControllerStatementBase statement, boolean isRecoveringResilient) throws ExprValidationException
addStatement
in interface ContextManager
ExprValidationException
public void stopStatement(java.lang.String statementName, java.lang.String statementId)
stopStatement
in interface ContextManager
public void destroyStatement(java.lang.String statementName, java.lang.String statementId)
destroyStatement
in interface ContextManager
public void safeDestroy()
safeDestroy
in interface ContextManager
public void setContextPartitionRange(java.util.List<NumberSetParameter> partitionRanges)
public FilterSpecLookupable getFilterLookupable(EventType eventType)
getFilterLookupable
in interface ContextManager
public void contextPartitionNavigate(ContextControllerInstanceHandle existingHandle, ContextController originator, ContextControllerState controllerState, int exportedCPOrPathId, ContextInternalFilterAddendum filterAddendum, AgentInstanceSelector agentInstanceSelector, byte[] payload)
contextPartitionNavigate
in interface ContextControllerLifecycleCallback
public ContextControllerInstanceHandle contextPartitionInstantiate(java.lang.Integer optionalContextPartitionId, int subPathId, java.lang.Integer importSubpathId, ContextController originator, EventBean optionalTriggeringEvent, java.util.Map<java.lang.String,java.lang.Object> optionalTriggeringPattern, java.lang.Object partitionKey, java.util.Map<java.lang.String,java.lang.Object> contextProperties, ContextControllerState states, ContextInternalFilterAddendum filterAddendum, boolean isRecoveringResilient, ContextPartitionState state)
contextPartitionInstantiate
in interface ContextControllerLifecycleCallback
public void handleFilterFault(EventBean theEvent, long version)
handleFilterFault
in interface FilterFaultHandler
public void contextPartitionTerminate(ContextControllerInstanceHandle contextNestedHandle, java.util.Map<java.lang.String,java.lang.Object> terminationProperties, boolean leaveLocksAcquired, java.util.List<AgentInstance> agentInstances)
contextPartitionTerminate
in interface ContextControllerLifecycleCallback
public java.util.Iterator<EventBean> iterator(java.lang.String statementId)
iterator
in interface ContextIteratorHandler
public SafeIterator<EventBean> safeIterator(java.lang.String statementId)
safeIterator
in interface ContextIteratorHandler