public class ContextManagerResident extends Object implements ContextManager, ContextIteratorHandler
Modifier and Type | Field and Description |
---|---|
protected CopyOnWriteArrayList<ContextPartitionStateListener> |
listenersLazy |
Constructor and Description |
---|
ContextManagerResident(String deploymentId,
ContextDefinition contextDefinition) |
protected CopyOnWriteArrayList<ContextPartitionStateListener> listenersLazy
public ContextManagerResident(String deploymentId, ContextDefinition contextDefinition)
public void setStatementContext(StatementContext statementContext)
setStatementContext
in interface ContextManager
public void addStatement(ContextControllerStatementDesc statement, boolean recovery)
addStatement
in interface ContextManager
public void stopStatement(ContextControllerStatementDesc statement)
stopStatement
in interface ContextManager
public int countStatements(Function<StatementContext,Boolean> filter)
countStatements
in interface ContextManager
public ContextDefinition getContextDefinition()
public ContextManagerRealization getRealization()
getRealization
in interface ContextManager
public void destroyContext()
destroyContext
in interface ContextManager
public ContextManagerRealization allocateNewRealization(AgentInstanceContext agentInstanceContext)
allocateNewRealization
in interface ContextManager
public Map<Integer,ContextControllerStatementDesc> getStatements()
getStatements
in interface ContextManager
public StatementContext getStatementContextCreate()
public ContextAgentInstanceInfo getContextAgentInstanceInfo(StatementContext statementContextOfStatement, int agentInstanceId)
getContextAgentInstanceInfo
in interface ContextManager
public AgentInstanceFilterProxy computeFilterAddendum(ContextControllerStatementDesc statement, Object[] contextPartitionKeys)
public ContextRuntimeDescriptor getContextRuntimeDescriptor()
getContextRuntimeDescriptor
in interface ContextManager
public Iterator<EventBean> iterator(int statementId)
iterator
in interface ContextIteratorHandler
public SafeIterator<EventBean> safeIterator(int statementId)
safeIterator
in interface ContextIteratorHandler
public Iterator<EventBean> iterator(int statementId, ContextPartitionSelector selector)
iterator
in interface ContextIteratorHandler
public SafeIterator<EventBean> safeIterator(int statementId, ContextPartitionSelector selector)
safeIterator
in interface ContextIteratorHandler
public Map<String,Object> getContextPartitions(int contextPartitionId)
getContextPartitions
in interface ContextManager
public MappedEventBean getContextPropertiesEvent(int contextPartitionId)
getContextPropertiesEvent
in interface ContextManager
public ContextPartitionIdentifier getContextPartitionIdentifier(Object[] partitionKeys)
public ContextPartitionCollection getContextPartitions(ContextPartitionSelector selector)
getContextPartitions
in interface ContextManager
public Set<Integer> getContextPartitionIds(ContextPartitionSelector selector)
getContextPartitionIds
in interface ContextManager
public long getContextPartitionCount()
getContextPartitionCount
in interface ContextManager
public ContextPartitionIdentifier getContextIdentifier(int agentInstanceId)
getContextIdentifier
in interface ContextManager
public Collection<Integer> getAgentInstanceIds(ContextPartitionSelector selector)
public StatementAIResourceRegistry allocateAgentInstanceResourceRegistry(AIRegistryRequirements registryRequirements)
allocateAgentInstanceResourceRegistry
in interface ContextManager
public ContextPartitionIdService getContextPartitionIdService()
public DataInputOutputSerde[] getContextPartitionKeySerdes()
getContextPartitionKeySerdes
in interface ContextManager
public int getNumNestingLevels()
getNumNestingLevels
in interface ContextManager
public DataInputOutputSerde[] getContextPartitionKeySerdeSubset(int nestingLevel)
public void addListener(ContextPartitionStateListener listener)
addListener
in interface ContextManager
public void removeListener(ContextPartitionStateListener listener)
removeListener
in interface ContextManager
public CopyOnWriteArrayList<ContextPartitionStateListener> getListenersMayNull()
public Iterator<ContextPartitionStateListener> getListeners()
getListeners
in interface ContextManager
public void removeListeners()
removeListeners
in interface ContextManager
public boolean handleFilterFault(EventBean theEvent, long version)
handleFilterFault
in interface FilterFaultHandler
public void clearCaches()
clearCaches
in interface ContextManager
Copyright © 2005–2018. All rights reserved.