public ContextPartitionCollection StopContextPartitions(String contextName, ContextPartitionSelector selector) { ContextManager contextManager = CheckedGetContextManager(contextName); ContextStatePathDescriptor descriptor = contextManager.ExtractStopPaths(selector); return(new ContextPartitionCollection(descriptor.ContextPartitionInformation)); }
public ContextPartitionDescriptor StopContextPartition(String contextName, int agentInstanceId) { ContextManager contextManager = CheckedGetContextManager(contextName); ContextStatePathDescriptor descriptor = contextManager.ExtractStopPaths(new CPSelectorById(agentInstanceId)); return(descriptor.ContextPartitionInformation.Get(agentInstanceId)); }
public EPContextPartitionExtract ExtractDestroyPaths(String contextName, ContextPartitionSelector selector) { ContextManager contextManager = CheckedGetContextManager(contextName); ContextStatePathDescriptor descriptor = contextManager.ExtractDestroyPaths(selector); return(DescriptorToExtract(contextManager.NumNestingLevels, descriptor)); }
private EPContextPartitionExtract DescriptorToExtract(int numNestingLevels, ContextStatePathDescriptor contextPaths) { var importable = new EPContextPartitionImportable(contextPaths.Paths); return(new EPContextPartitionExtract(new ContextPartitionCollection(contextPaths.ContextPartitionInformation), importable, numNestingLevels)); }