public class ContextManagerNested extends ContextManagerBase implements ContextManager, ContextControllerLifecycleCallback, ContextIteratorHandler, FilterFaultHandler
contextName, listenersLazy, servicesContext
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,
java.util.function.Supplier<ContextPartitionIdentifier> identifier) |
void |
contextPartitionNavigate(ContextControllerInstanceHandle existingHandle,
ContextController originator,
ContextControllerState controllerState,
int exportedCPOrPathId,
ContextInternalFilterAddendum filterAddendum,
AgentInstanceSelector agentInstanceSelector,
byte[] payload,
boolean isRecoveringResilient) |
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,
int 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) |
java.util.Map<java.lang.String,java.lang.Object> |
getContextProperties(int contextPartitionId) |
ContextStateCache |
getContextStateCache() |
FilterSpecLookupable |
getFilterLookupable(EventType eventType) |
int |
getNumNestingLevels() |
java.util.Map<java.lang.Integer,ContextControllerStatementDesc> |
getStatements() |
protected static ContextPartitionIdentifier[] |
getTreeCompositeKey(ContextControllerFactory[] nestedContextFactories,
java.lang.Object initPartitionKey,
ContextControllerTreeEntry treeEntry,
java.util.Map<ContextController,ContextControllerTreeEntry> subcontexts) |
boolean |
handleFilterFault(EventBean theEvent,
long version) |
void |
importStartPaths(ContextControllerState state,
AgentInstanceSelector agentInstanceSelector) |
java.util.Iterator<EventBean> |
iterator(int statementId) |
java.util.Iterator<EventBean> |
iterator(int statementId,
ContextPartitionSelector selector) |
void |
safeDestroy() |
SafeIterator<EventBean> |
safeIterator(int statementId) |
SafeIterator<EventBean> |
safeIterator(int statementId,
ContextPartitionSelector selector) |
java.util.Map<java.lang.Integer,ContextPartitionDescriptor> |
startPaths(ContextPartitionSelector selector) |
void |
stopStatement(java.lang.String statementName,
int statementId) |
addListener, getListeners, removeListener, removeListeners
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, getListeners, removeListener, removeListeners
public ContextManagerNested(ContextControllerFactoryServiceContext factoryServiceContext) throws ExprValidationException
ExprValidationException
public java.util.Map<java.lang.Integer,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(int statementId, ContextPartitionSelector selector)
iterator
in interface ContextIteratorHandler
public SafeIterator<EventBean> safeIterator(int 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
protected static ContextPartitionIdentifier[] getTreeCompositeKey(ContextControllerFactory[] nestedContextFactories, java.lang.Object initPartitionKey, ContextControllerTreeEntry treeEntry, java.util.Map<ContextController,ContextControllerTreeEntry> subcontexts)
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, int statementId)
stopStatement
in interface ContextManager
public void destroyStatement(java.lang.String statementName, int statementId)
destroyStatement
in interface ContextManager
public void safeDestroy()
safeDestroy
in interface ContextManager
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, boolean isRecoveringResilient)
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, java.util.function.Supplier<ContextPartitionIdentifier> identifier)
contextPartitionInstantiate
in interface ContextControllerLifecycleCallback
public boolean handleFilterFault(EventBean theEvent, long version)
handleFilterFault
in interface FilterFaultHandler
public ContextStateCache getContextStateCache()
getContextStateCache
in interface ContextManager
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(int statementId)
iterator
in interface ContextIteratorHandler
public SafeIterator<EventBean> safeIterator(int statementId)
safeIterator
in interface ContextIteratorHandler
public java.util.Map<java.lang.String,java.lang.Object> getContextProperties(int contextPartitionId)
getContextProperties
in interface ContextManager