public ContextPartitionIdentifier getIdentifier(String deploymentId, String contextName, int agentInstanceId) { ContextManager contextManager = checkedGetContextManager(deploymentId, contextName); return contextManager.getContextIdentifier(agentInstanceId); }
EPContextPartitionService contextPartitionService = new EPContextPartitionServiceImpl(services); EPVariableService variableService = new EPVariableServiceImpl(services); EPMetricsService metricsService = new EPMetricsServiceImpl(services);
public void addContextPartitionStateListener(String deploymentId, String contextName, ContextPartitionStateListener listener) { ContextManager contextManager = checkedGetContextManager(deploymentId, contextName); contextManager.addListener(listener); }
public Map<String, Object> getContextProperties(String deploymentId, String contextName, int contextPartitionId) { ContextManager contextManager = checkedGetContextManager(deploymentId, contextName); return contextManager.getContextPartitions(contextPartitionId); }
public Iterator<ContextPartitionStateListener> getContextPartitionStateListeners(String deploymentId, String contextName) { ContextManager contextManager = checkedGetContextManager(deploymentId, contextName); return contextManager.getListeners(); }
public void removeContextPartitionStateListeners(String deploymentId, String contextName) { ContextManager contextManager = checkedGetContextManager(deploymentId, contextName); contextManager.removeListeners(); }
public int getContextNestingLevel(String deploymentId, String contextName) { ContextManager contextManager = checkedGetContextManager(deploymentId, contextName); return contextManager.getNumNestingLevels(); }
public Set<Integer> getContextPartitionIds(String deploymentId, String contextName, ContextPartitionSelector selector) { ContextManager contextManager = checkedGetContextManager(deploymentId, contextName); return contextManager.getContextPartitionIds(selector); }
public void removeContextPartitionStateListener(String deploymentId, String contextName, ContextPartitionStateListener listener) { ContextManager contextManager = checkedGetContextManager(deploymentId, contextName); contextManager.removeListener(listener); }
public ContextPartitionCollection getContextPartitions(String deploymentId, String contextName, ContextPartitionSelector selector) { ContextManager contextManager = checkedGetContextManager(deploymentId, contextName); return contextManager.getContextPartitions(selector); }
public long getContextPartitionCount(String deploymentId, String contextName) { ContextManager contextManager = checkedGetContextManager(deploymentId, contextName); return contextManager.getContextPartitionCount(); }
public String[] getContextStatementNames(String deploymentId, String contextName) { ContextManager contextManager = checkedGetContextManager(deploymentId, contextName); String[] statements = new String[contextManager.getStatements().size()]; int count = 0; for (Map.Entry<Integer, ContextControllerStatementDesc> entry : contextManager.getStatements().entrySet()) { statements[count++] = entry.getValue().getLightweight().getStatementContext().getStatementName(); } return statements; }