com.espertech.esper.client.context
Class ContextPartitionDescriptor

java.lang.Object
  extended by com.espertech.esper.client.context.ContextPartitionDescriptor

public class ContextPartitionDescriptor
extends java.lang.Object

Descriptor encapsulates information about a context partition.


Constructor Summary
ContextPartitionDescriptor(int agentInstanceId, ContextPartitionIdentifier identifier, ContextPartitionState state)
          Ctor.
 
Method Summary
 int getAgentInstanceId()
          Returns the context partition id.
 ContextPartitionIdentifier getIdentifier()
          Returns an identifier object that identifies the context partition.
 ContextPartitionState getState()
          Returns context partition state.
 void setState(ContextPartitionState state)
          Convenience method for updating context partition state, does not affect actual context partition state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextPartitionDescriptor

public ContextPartitionDescriptor(int agentInstanceId,
                                  ContextPartitionIdentifier identifier,
                                  ContextPartitionState state)
Ctor.

Parameters:
agentInstanceId - context partition id
identifier - identifier object specific to context declaration
state - current state
Method Detail

getAgentInstanceId

public int getAgentInstanceId()
Returns the context partition id.

Returns:
id

getIdentifier

public ContextPartitionIdentifier getIdentifier()
Returns an identifier object that identifies the context partition.

Returns:
identifier

getState

public ContextPartitionState getState()
Returns context partition state.

Returns:
state

setState

public void setState(ContextPartitionState state)
Convenience method for updating context partition state, does not affect actual context partition state.

Parameters:
state - of context partition

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com