public class ContextControllerHash extends Object implements ContextController, ContextControllerHashedInstanceCallback
Modifier and Type | Field and Description |
---|---|
protected ContextControllerLifecycleCallback |
activationCallback |
protected ContextInternalFilterAddendum |
activationFilterAddendum |
protected int |
currentSubpathId |
protected ContextControllerHashFactoryImpl |
factory |
protected List<ContextControllerHashedFilterCallback> |
filterCallbacks |
protected Map<Integer,ContextControllerInstanceHandle> |
partitionKeys |
protected int |
pathId |
Constructor and Description |
---|
ContextControllerHash(int pathId,
ContextControllerLifecycleCallback activationCallback,
ContextControllerHashFactoryImpl factory) |
Modifier and Type | Method and Description |
---|---|
void |
activate(EventBean optionalTriggeringEvent,
Map<String,Object> optionalTriggeringPattern,
ContextControllerState controllerState,
ContextInternalFilterAddendum activationFilterAddendum,
Integer importPathId) |
protected void |
activateFilters(EventBean optionalTriggeringEvent) |
void |
create(int id,
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) |
protected final int pathId
protected final ContextControllerLifecycleCallback activationCallback
protected final ContextControllerHashFactoryImpl factory
protected final List<ContextControllerHashedFilterCallback> filterCallbacks
protected final Map<Integer,ContextControllerInstanceHandle> partitionKeys
protected ContextInternalFilterAddendum activationFilterAddendum
protected int currentSubpathId
public ContextControllerHash(int pathId, ContextControllerLifecycleCallback activationCallback, ContextControllerHashFactoryImpl factory)
public void importContextPartitions(ContextControllerState state, int pathIdToUse, ContextInternalFilterAddendum filterAddendum, AgentInstanceSelector agentInstanceSelector)
importContextPartitions
in interface ContextController
public void deletePath(ContextPartitionIdentifier identifier)
deletePath
in interface ContextController
public void visitSelectedPartitions(ContextPartitionSelector contextPartitionSelector, ContextPartitionVisitor visitor)
visitSelectedPartitions
in interface ContextController
public void activate(EventBean optionalTriggeringEvent, Map<String,Object> optionalTriggeringPattern, ContextControllerState controllerState, ContextInternalFilterAddendum activationFilterAddendum, Integer importPathId)
activate
in interface ContextController
protected void activateFilters(EventBean optionalTriggeringEvent)
public void create(int id, EventBean theEvent)
create
in interface ContextControllerHashedInstanceCallback
public ContextControllerFactory getFactory()
getFactory
in interface ContextController
public int getPathId()
getPathId
in interface ContextController
public void deactivate()
deactivate
in interface ContextController