|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.core.service.EPContextPartitionAdminImpl
public class EPContextPartitionAdminImpl
Nested Class Summary | |
---|---|
static class |
EPContextPartitionAdminImpl.CPImportCallback
|
static class |
EPContextPartitionAdminImpl.CPSelectorById
|
Constructor Summary | |
---|---|
EPContextPartitionAdminImpl(EPServicesContext services)
|
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. |
EPContextPartitionExtract |
extractDestroyPaths(java.lang.String contextName,
ContextPartitionSelector selector)
|
EPContextPartitionExtract |
extractPaths(java.lang.String contextName,
ContextPartitionSelector selector)
|
EPContextPartitionExtract |
extractStopPaths(java.lang.String contextName,
ContextPartitionSelector selector)
|
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. |
EPContextPartitionImportResult |
importStartPaths(java.lang.String contextName,
EPContextPartitionImportable importable,
AgentInstanceSelector agentInstanceSelector)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EPContextPartitionAdminImpl(EPServicesContext services)
Method Detail |
---|
public java.lang.String[] getContextStatementNames(java.lang.String contextName)
EPContextPartitionAdmin
Returns null if a context declaration for the name does not exist.
getContextStatementNames
in interface EPContextPartitionAdmin
contextName
- context name to return statements for
public int getContextNestingLevel(java.lang.String contextName)
EPContextPartitionAdmin
getContextNestingLevel
in interface EPContextPartitionAdmin
contextName
- context name
public ContextPartitionCollection destroyContextPartitions(java.lang.String contextName, ContextPartitionSelector selector)
EPContextPartitionAdmin
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.
destroyContextPartitions
in interface EPContextPartitionAdmin
contextName
- context nameselector
- a selector that identifies the context partitions
public ContextPartitionDescriptor destroyContextPartition(java.lang.String contextName, int agentInstanceId)
EPContextPartitionAdmin
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.
destroyContextPartition
in interface EPContextPartitionAdmin
contextName
- context nameagentInstanceId
- the context partition id number
public EPContextPartitionExtract extractDestroyPaths(java.lang.String contextName, ContextPartitionSelector selector)
extractDestroyPaths
in interface EPContextPartitionAdminSPI
public ContextPartitionCollection stopContextPartitions(java.lang.String contextName, ContextPartitionSelector selector)
EPContextPartitionAdmin
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.
stopContextPartitions
in interface EPContextPartitionAdmin
contextName
- context nameselector
- a selector that identifies the context partitions
public ContextPartitionCollection startContextPartitions(java.lang.String contextName, ContextPartitionSelector selector)
EPContextPartitionAdmin
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.
startContextPartitions
in interface EPContextPartitionAdmin
contextName
- context nameselector
- a selector that identifies the context partitions
public ContextPartitionCollection getContextPartitions(java.lang.String contextName, ContextPartitionSelector selector)
EPContextPartitionAdmin
getContextPartitions
in interface EPContextPartitionAdmin
contextName
- context nameselector
- a selector that identifies the context partitions
public ContextPartitionDescriptor stopContextPartition(java.lang.String contextName, int agentInstanceId)
EPContextPartitionAdmin
stopContextPartition
in interface EPContextPartitionAdmin
contextName
- context nameagentInstanceId
- the context partition id number
public ContextPartitionDescriptor startContextPartition(java.lang.String contextName, int agentInstanceId)
EPContextPartitionAdmin
startContextPartition
in interface EPContextPartitionAdmin
contextName
- context nameagentInstanceId
- the context partition id number
public ContextPartitionDescriptor getDescriptor(java.lang.String contextName, int agentInstanceId)
EPContextPartitionAdmin
getDescriptor
in interface EPContextPartitionAdmin
contextName
- context nameagentInstanceId
- the context partition id number
public EPContextPartitionExtract extractStopPaths(java.lang.String contextName, ContextPartitionSelector selector)
extractStopPaths
in interface EPContextPartitionAdminSPI
public EPContextPartitionExtract extractPaths(java.lang.String contextName, ContextPartitionSelector selector)
extractPaths
in interface EPContextPartitionAdminSPI
public java.util.Set<java.lang.Integer> getContextPartitionIds(java.lang.String contextName, ContextPartitionSelector selector)
EPContextPartitionAdmin
getContextPartitionIds
in interface EPContextPartitionAdmin
contextName
- context nameselector
- a selector that identifies the context partitions
public EPContextPartitionImportResult importStartPaths(java.lang.String contextName, EPContextPartitionImportable importable, AgentInstanceSelector agentInstanceSelector)
importStartPaths
in interface EPContextPartitionAdminSPI
|
© 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 |