public interface EPContextPartitionAdmin
Modifier and Type | Method and Description |
---|---|
ContextPartitionDescriptor |
destroyContextPartition(String contextName,
int agentInstanceId)
Destroy the context partition returning its descriptor.
|
ContextPartitionCollection |
destroyContextPartitions(String contextName,
ContextPartitionSelector selector)
Destroy one or more context partitions dropping the associated state and removing associated context partition metadata.
|
int |
getContextNestingLevel(String contextName)
Returns the nesting level for the context declaration, i.e.
|
Set<Integer> |
getContextPartitionIds(String contextName,
ContextPartitionSelector selector)
Returns the context partition ids.
|
ContextPartitionCollection |
getContextPartitions(String contextName,
ContextPartitionSelector selector)
Returns information about selected context partitions including state.
|
String[] |
getContextStatementNames(String contextName)
Returns the statement names associated to the context of the given name.
|
ContextPartitionDescriptor |
getDescriptor(String contextName,
int agentInstanceId)
Returning the descriptor of a given context partition.
|
ContextPartitionDescriptor |
startContextPartition(String contextName,
int agentInstanceId)
Start the context partition if it is currently stopped and returning its descriptor.
|
ContextPartitionCollection |
startContextPartitions(String contextName,
ContextPartitionSelector selector)
Start one or more context partitions that were previously stopped.
|
ContextPartitionDescriptor |
stopContextPartition(String contextName,
int agentInstanceId)
Stop the context partition if it is currently started and returning its descriptor.
|
ContextPartitionCollection |
stopContextPartitions(String contextName,
ContextPartitionSelector selector)
Stop one or more context partitions that are currently started, dropping the associated state and but keeping
associated context partition metadata for the purpose of starting it again.
|
String[] getContextStatementNames(String contextName)
Returns null if a context declaration for the name does not exist.
contextName
- context name to return statements forint getContextNestingLevel(String contextName)
contextName
- context nameIllegalArgumentException
- if a context by that name was not declaredContextPartitionCollection destroyContextPartitions(String contextName, ContextPartitionSelector selector)
For key-partitioned contexts and hash-segmented contexts the next event for such context partition allocates a new context partition for that key or hash.
If context partitions cannot be found they are not part of the collection returned. Only context partitions in stopped or started state can be destroyed.
contextName
- context nameselector
- a selector that identifies the context partitionsIllegalArgumentException
- if a context by that name was not declaredInvalidContextPartitionSelector
- if the selector type and context declaration mismatchContextPartitionCollection stopContextPartitions(String contextName, ContextPartitionSelector selector)
Stopping a context partition means any associated statements no longer process events or time for that context partition only, and dropping all such associated state.
If context partitions cannot be found they are not part of the collection returned. Stopped context partitions remain stopped and are not returned.
contextName
- context nameselector
- a selector that identifies the context partitionsIllegalArgumentException
- if a context by that name was not declaredInvalidContextPartitionSelector
- if the selector type and context declaration mismatchContextPartitionCollection startContextPartitions(String contextName, ContextPartitionSelector selector)
Starting a context partition means any associated statements beging to process events or time for that context partition, starting fresh with newly allocated state.
If context partitions cannot be found they are not part of the collection returned. Started context partitions remain started and are not returned.
contextName
- context nameselector
- a selector that identifies the context partitionsIllegalArgumentException
- if a context by that name was not declaredInvalidContextPartitionSelector
- if the selector type and context declaration mismatchContextPartitionCollection getContextPartitions(String contextName, ContextPartitionSelector selector)
contextName
- context nameselector
- a selector that identifies the context partitionsIllegalArgumentException
- if a context by that name was not declaredInvalidContextPartitionSelector
- if the selector type and context declaration mismatchSet<Integer> getContextPartitionIds(String contextName, ContextPartitionSelector selector)
contextName
- context nameselector
- a selector that identifies the context partitionsIllegalArgumentException
- if a context by that name was not declaredInvalidContextPartitionSelector
- if the selector type and context declaration mismatchContextPartitionDescriptor destroyContextPartition(String contextName, int agentInstanceId)
For key-partitioned contexts and hash-segmented contexts the next event for such context partition allocates a new context partition for that key or hash.
Only context partitions in stopped or started state can be destroyed.
contextName
- context nameagentInstanceId
- the context partition id numberIllegalArgumentException
- if a context by that name was not declaredContextPartitionDescriptor stopContextPartition(String contextName, int agentInstanceId)
contextName
- context nameagentInstanceId
- the context partition id numberIllegalArgumentException
- if a context by that name was not declaredContextPartitionDescriptor startContextPartition(String contextName, int agentInstanceId)
contextName
- context nameagentInstanceId
- the context partition id numberIllegalArgumentException
- if a context by that name was not declaredContextPartitionDescriptor getDescriptor(String contextName, int agentInstanceId)
contextName
- context nameagentInstanceId
- the context partition id numberIllegalArgumentException
- if a context by that name was not declared