Class ContextManagerResident
java.lang.Object
com.espertech.esper.common.internal.context.mgr.ContextManagerResident
- All Implemented Interfaces:
ContextManager
,ContextIteratorHandler
,FilterFaultHandler
public class ContextManagerResident
extends Object
implements ContextManager, ContextIteratorHandler
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
ConstructorDescriptionContextManagerResident
(String deploymentId, ContextDefinition contextDefinition) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(ContextPartitionStateListener listener) void
addStatement
(ContextControllerStatementDesc statement, boolean recovery) allocateAgentInstanceResourceRegistry
(AIRegistryRequirements registryRequirements) allocateNewRealization
(AgentInstanceContext agentInstanceContext) void
computeFilterAddendum
(ContextControllerStatementDesc statement, Object[] contextPartitionKeys) int
countStatements
(Function<StatementContext, Boolean> filter) void
getAgentInstanceIds
(ContextPartitionSelector selector) getContextAgentInstanceInfo
(StatementContext statementContextOfStatement, int agentInstanceId) getContextIdentifier
(int agentInstanceId) long
getContextPartitionIdentifier
(Object[] partitionKeys) getContextPartitionKeySerdeSubset
(int nestingLevel) static DataInputOutputSerde[]
getContextPartitionKeySerdeSubset
(int nestingLevel, DataInputOutputSerde[] allSerdes) getContextPartitions
(int contextPartitionId) getContextPartitions
(ContextPartitionSelector selector) getContextPropertiesEvent
(int contextPartitionId) int
boolean
handleFilterFault
(EventBean theEvent, long version) iterator
(int statementId) iterator
(int statementId, ContextPartitionSelector selector) void
removeListener
(ContextPartitionStateListener listener) void
safeIterator
(int statementId) safeIterator
(int statementId, ContextPartitionSelector selector) void
setStatementContext
(StatementContext statementContext) void
stopStatement
(int statementId, String statementName, String statementDeploymentId)
-
Field Details
-
listenersLazy
-
-
Constructor Details
-
ContextManagerResident
-
-
Method Details
-
setStatementContext
- Specified by:
setStatementContext
in interfaceContextManager
-
addStatement
- Specified by:
addStatement
in interfaceContextManager
-
stopStatement
- Specified by:
stopStatement
in interfaceContextManager
-
countStatements
- Specified by:
countStatements
in interfaceContextManager
-
getContextDefinition
-
getRealization
- Specified by:
getRealization
in interfaceContextManager
-
destroyContext
public void destroyContext()- Specified by:
destroyContext
in interfaceContextManager
-
allocateNewRealization
- Specified by:
allocateNewRealization
in interfaceContextManager
-
getStatements
- Specified by:
getStatements
in interfaceContextManager
-
getStatementContextCreate
-
getContextAgentInstanceInfo
public ContextAgentInstanceInfo getContextAgentInstanceInfo(StatementContext statementContextOfStatement, int agentInstanceId) - Specified by:
getContextAgentInstanceInfo
in interfaceContextManager
-
computeFilterAddendum
public AgentInstanceFilterProxy computeFilterAddendum(ContextControllerStatementDesc statement, Object[] contextPartitionKeys) -
getContextRuntimeDescriptor
- Specified by:
getContextRuntimeDescriptor
in interfaceContextManager
-
iterator
- Specified by:
iterator
in interfaceContextIteratorHandler
-
safeIterator
- Specified by:
safeIterator
in interfaceContextIteratorHandler
-
iterator
- Specified by:
iterator
in interfaceContextIteratorHandler
-
safeIterator
- Specified by:
safeIterator
in interfaceContextIteratorHandler
-
getContextPartitions
- Specified by:
getContextPartitions
in interfaceContextManager
-
getContextPropertiesEvent
- Specified by:
getContextPropertiesEvent
in interfaceContextManager
-
getContextPartitionIdentifier
-
getContextPartitions
- Specified by:
getContextPartitions
in interfaceContextManager
-
getContextPartitionIds
- Specified by:
getContextPartitionIds
in interfaceContextManager
-
getContextPartitionCount
public long getContextPartitionCount()- Specified by:
getContextPartitionCount
in interfaceContextManager
-
getContextIdentifier
- Specified by:
getContextIdentifier
in interfaceContextManager
-
getAgentInstanceIds
-
allocateAgentInstanceResourceRegistry
public StatementAIResourceRegistry allocateAgentInstanceResourceRegistry(AIRegistryRequirements registryRequirements) - Specified by:
allocateAgentInstanceResourceRegistry
in interfaceContextManager
-
getContextPartitionIdService
-
getContextPartitionKeySerdes
- Specified by:
getContextPartitionKeySerdes
in interfaceContextManager
-
getNumNestingLevels
public int getNumNestingLevels()- Specified by:
getNumNestingLevels
in interfaceContextManager
-
getContextPartitionKeySerdeSubset
-
getContextPartitionKeySerdeSubset
public static DataInputOutputSerde[] getContextPartitionKeySerdeSubset(int nestingLevel, DataInputOutputSerde[] allSerdes) -
addListener
- Specified by:
addListener
in interfaceContextManager
-
removeListener
- Specified by:
removeListener
in interfaceContextManager
-
getListenersMayNull
-
getListeners
- Specified by:
getListeners
in interfaceContextManager
-
removeListeners
public void removeListeners()- Specified by:
removeListeners
in interfaceContextManager
-
handleFilterFault
- Specified by:
handleFilterFault
in interfaceFilterFaultHandler
-
clearCaches
public void clearCaches()- Specified by:
clearCaches
in interfaceContextManager
-