Ejemplo n.º 1
0
 public EPDataFlowInstanceImpl(
     String engineURI,
     String statementName,
     bool audit,
     String dataFlowName,
     Object userObject,
     String instanceId,
     EPDataFlowState state,
     IList <GraphSourceRunnable> sourceRunnables,
     IDictionary <int, Object> operators,
     ICollection <int> operatorBuildOrder,
     EPDataFlowInstanceStatistics statisticsProvider,
     IDictionary <String, Object> parameters,
     EngineImportService engineImportService)
 {
     _engineUri       = engineURI;
     _statementName   = statementName;
     _audit           = audit;
     _dataFlowName    = dataFlowName;
     _userObject      = userObject;
     _instanceId      = instanceId;
     _sourceRunnables = sourceRunnables;
     _operators       = new OrderedDictionary <int, Pair <object, bool> >();
     foreach (var entry in operators)
     {
         _operators.Put(entry.Key, new Pair <Object, Boolean>(entry.Value, false));
     }
     _operatorBuildOrder = operatorBuildOrder;
     _statisticsProvider = statisticsProvider;
     SetState(state);
     _parameters          = parameters;
     _engineImportService = engineImportService;
 }
Ejemplo n.º 2
0
        public EPDataFlowInstanceImpl(
            object dataFlowInstanceUserObject,
            string dataFlowInstanceId,
            OperatorStatisticsProvider statistics,
            IDictionary<int, object> operators,
            IList<GraphSourceRunnable> sourceRunnables,
            DataflowDesc dataflowDesc,
            AgentInstanceContext agentInstanceContext,
            EPDataFlowInstanceStatistics statisticsProvider,
            IDictionary<string, object> parametersURIs)
        {
            UserObject = dataFlowInstanceUserObject;
            InstanceId = dataFlowInstanceId;
            _statistics = statistics;
            _dataflowDesc = dataflowDesc;
            _agentInstanceContext = agentInstanceContext;
            _sourceRunnables = sourceRunnables;
            Statistics = statisticsProvider;
            Parameters = parametersURIs;

            State = EPDataFlowState.INSTANTIATED;

            _operators = new OrderedListDictionary<int, Pair<object, bool>>();
            foreach (var entry in operators) {
                _operators.Put(entry.Key, new Pair<object, bool>(entry.Value, false));
            }
        }