|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EPContextPartitionAdmin
Service interface for administration of contexts and context partitions.
Method Summary | |
---|---|
ContextPartitionDescriptor |
destroyContextPartition(java.lang.String contextName,
int agentInstanceId)
Destroy the context partition returning its descriptor. |
ContextPartitionCollection |
destroyContextPartitions(java.lang.String contextName,
ContextPartitionSelector selector)
Destroy one or more context partitions dropping the associated state and removing associated context partition metadata. |
int |
getContextNestingLevel(java.lang.String contextName)
Returns the nesting level for the context declaration, i.e. |
java.util.Set<java.lang.Integer> |
getContextPartitionIds(java.lang.String contextName,
ContextPartitionSelector selector)
Returns the context partition ids. |
ContextPartitionCollection |
getContextPartitions(java.lang.String contextName,
ContextPartitionSelector selector)
Returns information about selected context partitions including state. |
java.lang.String[] |
getContextStatementNames(java.lang.String contextName)
Returns the statement names associated to the context of the given name. |
ContextPartitionDescriptor |
getDescriptor(java.lang.String contextName,
int agentInstanceId)
Returning the descriptor of a given context partition. |
ContextPartitionDescriptor |
startContextPartition(java.lang.String contextName,
int agentInstanceId)
Start the context partition if it is currently stopped and returning its descriptor. |
ContextPartitionCollection |
startContextPartitions(java.lang.String contextName,
ContextPartitionSelector selector)
Start one or more context partitions that were previously stopped. |
ContextPartitionDescriptor |
stopContextPartition(java.lang.String contextName,
int agentInstanceId)
Stop the context partition if it is currently started and returning its descriptor. |
ContextPartitionCollection |
stopContextPartitions(java.lang.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. |
Method Detail |
---|
java.lang.String[] getContextStatementNames(java.lang.String contextName)
Returns null if a context declaration for the name does not exist.
contextName
- context name to return statements for
int getContextNestingLevel(java.lang.String contextName)
contextName
- context name
java.lang.IllegalArgumentException
- if a context by that name was not declaredContextPartitionCollection destroyContextPartitions(java.lang.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 partitions
java.lang.IllegalArgumentException
- if a context by that name was not declared
InvalidContextPartitionSelector
- if the selector type and context declaration mismatchContextPartitionCollection stopContextPartitions(java.lang.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 partitions
java.lang.IllegalArgumentException
- if a context by that name was not declared
InvalidContextPartitionSelector
- if the selector type and context declaration mismatchContextPartitionCollection startContextPartitions(java.lang.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 partitions
java.lang.IllegalArgumentException
- if a context by that name was not declared
InvalidContextPartitionSelector
- if the selector type and context declaration mismatchContextPartitionCollection getContextPartitions(java.lang.String contextName, ContextPartitionSelector selector)
contextName
- context nameselector
- a selector that identifies the context partitions
java.lang.IllegalArgumentException
- if a context by that name was not declared
InvalidContextPartitionSelector
- if the selector type and context declaration mismatchjava.util.Set<java.lang.Integer> getContextPartitionIds(java.lang.String contextName, ContextPartitionSelector selector)
contextName
- context nameselector
- a selector that identifies the context partitions
java.lang.IllegalArgumentException
- if a context by that name was not declared
InvalidContextPartitionSelector
- if the selector type and context declaration mismatchContextPartitionDescriptor destroyContextPartition(java.lang.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 number
java.lang.IllegalArgumentException
- if a context by that name was not declaredContextPartitionDescriptor stopContextPartition(java.lang.String contextName, int agentInstanceId)
contextName
- context nameagentInstanceId
- the context partition id number
java.lang.IllegalArgumentException
- if a context by that name was not declaredContextPartitionDescriptor startContextPartition(java.lang.String contextName, int agentInstanceId)
contextName
- context nameagentInstanceId
- the context partition id number
java.lang.IllegalArgumentException
- if a context by that name was not declaredContextPartitionDescriptor getDescriptor(java.lang.String contextName, int agentInstanceId)
contextName
- context nameagentInstanceId
- the context partition id number
java.lang.IllegalArgumentException
- if a context by that name was not declared
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |