public void SetUp()
        {
            _container = SupportContainer.Reset();
            MetricReportingPath.IsMetricsEnabled = false;

            _listenerOne = new SupportUpdateListener();
            _listenerTwo = new SupportUpdateListener();
    
            var listenerSet = new EPStatementListenerSet();
            listenerSet.Events.Add(_listenerOne.Update);
            listenerSet.Events.Add(_listenerTwo.Update);
    
            _dispatchService = new DispatchServiceImpl(
                _container.ThreadLocalManager());

            _statementResultService = new StatementResultServiceImpl(
                "name", null, null,
                new ThreadingServiceImpl(new ConfigurationEngineDefaults.ThreadingConfig()),
                _container.ThreadLocalManager());
            _statementResultService.SetUpdateListeners(listenerSet, false);
            _statementResultService.SetSelectClause(
                new Type[1], new String[1], false, 
                new ExprEvaluator[1], new SupportExprEvaluatorContext(_container, null));
            _statementResultService.SetContext(new SupportEPStatementSPI(), null, false, false, false, false, null);

            _updateDispatchView = new UpdateDispatchViewBlockingWait(
                _statementResultService, _dispatchService, 1000, _container.ThreadLocalManager());
        }
示例#2
0
 /// <summary>
 ///     Ctor.
 /// </summary>
 /// <param name="events">to dispatch</param>
 /// <param name="statementResultService">handles result indicate</param>
 public OutboundUnitRunnable(
     UniformPair<EventBean[]> events,
     StatementResultServiceImpl statementResultService)
 {
     this.events = events;
     this.statementResultService = statementResultService;
 }
示例#3
0
 public EPStatementFactoryArgs(
     StatementContext statementContext,
     UpdateDispatchView dispatchChildView,
     StatementResultServiceImpl statementResultService)
 {
     StatementContext = statementContext;
     DispatchChildView = dispatchChildView;
     StatementResultService = statementResultService;
 }