com.espertech.esper.core.context.mgr
Class ContextControllerPartitioned

java.lang.Object
  extended by com.espertech.esper.core.context.mgr.ContextControllerPartitioned
All Implemented Interfaces:
ContextController, ContextControllerPartitionedInstanceCreateCallback

public class ContextControllerPartitioned
extends java.lang.Object
implements ContextController, ContextControllerPartitionedInstanceCreateCallback


Field Summary
protected  ContextControllerLifecycleCallback activationCallback
           
protected  int currentSubpathId
           
protected  ContextControllerPartitionedFactory factory
           
protected  java.util.List<ContextControllerPartitionedFilterCallback> filterCallbacks
           
protected  java.util.HashMap<java.lang.Object,ContextControllerInstanceHandle> partitionKeys
           
protected  int pathId
           
 
Constructor Summary
ContextControllerPartitioned(int pathId, ContextControllerLifecycleCallback activationCallback, ContextControllerPartitionedFactory factory)
           
 
Method Summary
 void activate(EventBean optionalTriggeringEvent, java.util.Map<java.lang.String,java.lang.Object> optionalTriggeringPattern, ContextControllerState controllerState, ContextInternalFilterAddendum filterAddendum, java.lang.Integer importPathId)
           
 void create(java.lang.Object key, EventBean theEvent)
           
 void deactivate()
           
 void deletePath(ContextPartitionIdentifier identifier)
           
 ContextControllerFactory getFactory()
           
 int getPathId()
           
 void importContextPartitions(ContextControllerState state, int pathIdToUse, ContextInternalFilterAddendum filterAddendum, AgentInstanceSelector agentInstanceSelector)
           
 void visitSelectedPartitions(ContextPartitionSelector contextPartitionSelector, ContextPartitionVisitor visitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pathId

protected final int pathId

activationCallback

protected final ContextControllerLifecycleCallback activationCallback

factory

protected final ContextControllerPartitionedFactory factory

filterCallbacks

protected final java.util.List<ContextControllerPartitionedFilterCallback> filterCallbacks

partitionKeys

protected final java.util.HashMap<java.lang.Object,ContextControllerInstanceHandle> partitionKeys

currentSubpathId

protected int currentSubpathId
Constructor Detail

ContextControllerPartitioned

public ContextControllerPartitioned(int pathId,
                                    ContextControllerLifecycleCallback activationCallback,
                                    ContextControllerPartitionedFactory factory)
Method Detail

importContextPartitions

public void importContextPartitions(ContextControllerState state,
                                    int pathIdToUse,
                                    ContextInternalFilterAddendum filterAddendum,
                                    AgentInstanceSelector agentInstanceSelector)
Specified by:
importContextPartitions in interface ContextController

deletePath

public void deletePath(ContextPartitionIdentifier identifier)
Specified by:
deletePath in interface ContextController

visitSelectedPartitions

public void visitSelectedPartitions(ContextPartitionSelector contextPartitionSelector,
                                    ContextPartitionVisitor visitor)
Specified by:
visitSelectedPartitions in interface ContextController

activate

public void activate(EventBean optionalTriggeringEvent,
                     java.util.Map<java.lang.String,java.lang.Object> optionalTriggeringPattern,
                     ContextControllerState controllerState,
                     ContextInternalFilterAddendum filterAddendum,
                     java.lang.Integer importPathId)
Specified by:
activate in interface ContextController

getFactory

public ContextControllerFactory getFactory()
Specified by:
getFactory in interface ContextController

getPathId

public int getPathId()
Specified by:
getPathId in interface ContextController

deactivate

public void deactivate()
Specified by:
deactivate in interface ContextController

create

public void create(java.lang.Object key,
                   EventBean theEvent)
Specified by:
create in interface ContextControllerPartitionedInstanceCreateCallback

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