Beispiel #1
0
        public ContextPartitionCollection StopContextPartitions(String contextName, ContextPartitionSelector selector)
        {
            ContextManager             contextManager = CheckedGetContextManager(contextName);
            ContextStatePathDescriptor descriptor     = contextManager.ExtractStopPaths(selector);

            return(new ContextPartitionCollection(descriptor.ContextPartitionInformation));
        }
Beispiel #2
0
        public ContextPartitionDescriptor StopContextPartition(String contextName, int agentInstanceId)
        {
            ContextManager             contextManager = CheckedGetContextManager(contextName);
            ContextStatePathDescriptor descriptor     = contextManager.ExtractStopPaths(new CPSelectorById(agentInstanceId));

            return(descriptor.ContextPartitionInformation.Get(agentInstanceId));
        }
Beispiel #3
0
        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));
        }