public interface EPContextPartitionService
Modifier and Type | Method and Description |
---|---|
void |
addContextPartitionStateListener(String deploymentId,
String contextName,
ContextPartitionStateListener listener)
Add context partition state listener for the given context
|
void |
addContextStateListener(ContextStateListener listener)
Add a context state listener
|
int |
getContextNestingLevel(String deploymentId,
String contextName)
Returns the nesting level for the context declaration, i.e.
|
long |
getContextPartitionCount(String deploymentId,
String contextName)
Returns the current count of context partition.
|
Set<Integer> |
getContextPartitionIds(String deploymentId,
String contextName,
ContextPartitionSelector selector)
Returns the context partition ids.
|
ContextPartitionCollection |
getContextPartitions(String deploymentId,
String contextName,
ContextPartitionSelector selector)
Returns information about selected context partitions including state.
|
Iterator<ContextPartitionStateListener> |
getContextPartitionStateListeners(String deploymentId,
String contextName)
Returns an iterator of context partition state listeners (read-only) for the given context
|
Map<String,Object> |
getContextProperties(String deploymentId,
String contextName,
int contextPartitionId)
Returns the context properties for a given deployment id, context name and context partition id.
|
Iterator<ContextStateListener> |
getContextStateListeners()
Returns an iterator of context state listeners (read-only)
|
String[] |
getContextStatementNames(String deploymentId,
String contextName)
Returns the statement names associated to the context of the given name.
|
ContextPartitionIdentifier |
getIdentifier(String deploymentId,
String contextName,
int agentInstanceId)
Returning the descriptor of a given context partition.
|
void |
removeContextPartitionStateListener(String deploymentId,
String contextName,
ContextPartitionStateListener listener)
Remove a context partition state listener for the given context
|
void |
removeContextPartitionStateListeners(String deploymentId,
String contextName)
Removes all context partition state listener for the given context
|
void |
removeContextStateListener(ContextStateListener listener)
Remove a context state listener
|
void |
removeContextStateListeners()
Removes all context state listener
|
String[] getContextStatementNames(String deploymentId, String contextName)
Returns null if a context declaration for the name does not exist.
deploymentId
- deployment id of context (deployment id of create-context statement)contextName
- context name to return statements forint getContextNestingLevel(String deploymentId, String contextName)
deploymentId
- deployment id of context (deployment id of create-context statement)contextName
- context nameIllegalArgumentException
- if a context by that name was not declaredContextPartitionCollection getContextPartitions(String deploymentId, String contextName, ContextPartitionSelector selector)
deploymentId
- deployment id of context (deployment id of create-context statement)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 deploymentId, String contextName, ContextPartitionSelector selector)
deploymentId
- deployment id of context (deployment id of create-context statement)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 mismatchlong getContextPartitionCount(String deploymentId, String contextName)
deploymentId
- deployment id of context (deployment id of create-context statement)contextName
- context nameIllegalArgumentException
- if a context by that name was not declaredContextPartitionIdentifier getIdentifier(String deploymentId, String contextName, int agentInstanceId)
deploymentId
- deployment id of context (deployment id of create-context statement)contextName
- context nameagentInstanceId
- the context partition id numberIllegalArgumentException
- if a context by that name was not declaredvoid addContextStateListener(ContextStateListener listener)
listener
- to addvoid removeContextStateListener(ContextStateListener listener)
listener
- to removeIterator<ContextStateListener> getContextStateListeners()
void removeContextStateListeners()
void addContextPartitionStateListener(String deploymentId, String contextName, ContextPartitionStateListener listener)
deploymentId
- deployment id of context (deployment id of create-context statement)contextName
- context namelistener
- to addvoid removeContextPartitionStateListener(String deploymentId, String contextName, ContextPartitionStateListener listener)
deploymentId
- deployment id of context (deployment id of create-context statement)contextName
- context namelistener
- to removeIterator<ContextPartitionStateListener> getContextPartitionStateListeners(String deploymentId, String contextName)
deploymentId
- deployment id of context (deployment id of create-context statement)contextName
- context namevoid removeContextPartitionStateListeners(String deploymentId, String contextName)
deploymentId
- deployment id of context (deployment id of create-context statement)contextName
- context nameMap<String,Object> getContextProperties(String deploymentId, String contextName, int contextPartitionId)
deploymentId
- deployment id of context (deployment id of create-context statement)contextName
- context namecontextPartitionId
- context partition idCopyright © 2005–2018. All rights reserved.