public class ContextManagerImpl extends ContextManagerBase implements ContextManager, ContextControllerLifecycleCallback, ContextIteratorHandler, FilterFaultHandler
Modifier and Type | Class and Description |
---|---|
static class |
ContextManagerImpl.ContextNestedHandleImpl |
contextName, listenersLazy, servicesContext
Constructor and Description |
---|
ContextManagerImpl(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> agentInstancesCollected) |
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 selector) |
ContextDescriptor |
getContextDescriptor() |
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() |
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) |
protected static void |
setState(java.util.Map<java.lang.Integer,ContextPartitionDescriptor> original,
ContextPartitionState state) |
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 ContextManagerImpl(ContextControllerFactoryServiceContext factoryServiceContext) throws ExprValidationException
ExprValidationException
public int getNumNestingLevels()
getNumNestingLevels
in interface ContextManager
public java.util.Map<java.lang.Integer,ContextControllerStatementDesc> getStatements()
getStatements
in interface ContextManager
public ContextDescriptor getContextDescriptor()
getContextDescriptor
in interface ContextManager
public ContextStateCache getContextStateCache()
getContextStateCache
in interface ContextManager
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 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 void contextPartitionTerminate(ContextControllerInstanceHandle contextNestedHandle, java.util.Map<java.lang.String,java.lang.Object> terminationProperties, boolean leaveLocksAcquired, java.util.List<AgentInstance> agentInstancesCollected)
contextPartitionTerminate
in interface ContextControllerLifecycleCallback
public void contextPartitionNavigate(ContextControllerInstanceHandle existingHandle, ContextController originator, ContextControllerState controllerState, int exportedCPOrPathId, ContextInternalFilterAddendum filterAddendum, AgentInstanceSelector agentInstanceSelector, byte[] payload, boolean isRecoveringResilient)
contextPartitionNavigate
in interface ContextControllerLifecycleCallback
public FilterSpecLookupable getFilterLookupable(EventType eventType)
getFilterLookupable
in interface ContextManager
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.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 selector)
getAgentInstanceIds
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 void importStartPaths(ContextControllerState state, AgentInstanceSelector agentInstanceSelector)
importStartPaths
in interface ContextManager
public boolean handleFilterFault(EventBean theEvent, long version)
handleFilterFault
in interface FilterFaultHandler
protected static void setState(java.util.Map<java.lang.Integer,ContextPartitionDescriptor> original, ContextPartitionState state)
public java.util.Map<java.lang.String,java.lang.Object> getContextProperties(int contextPartitionId)
getContextProperties
in interface ContextManager