Ejemplo n.º 1
0
        public override void SetUp()
        {
            base.SetUp();

            // Establish feed for combined events, which contains the latency values
            CombinedEventStmt.Create(epService.EPAdministrator);

            // Establish listeners for testing
            listenerTotals     = new SupportUpdateListener();
            listenerByCustomer = new SupportUpdateListener();
            listenerBySupplier = new SupportUpdateListener();
            RealtimeSummaryStmt realtimeStmt = new RealtimeSummaryStmt(epService.EPAdministrator);

            realtimeStmt.TotalsStatement.Events   += listenerTotals.Update;
            realtimeStmt.CustomerStatement.Events += listenerByCustomer.Update;
            realtimeStmt.SupplierStatement.Events += listenerBySupplier.Update;

            // Use external clocking for the test
            epService.EPRuntime.SendEvent(new TimerControlEvent(TimerControlEvent.ClockTypeEnum.CLOCK_EXTERNAL));
        }
Ejemplo n.º 2
0
        public override void SetUp()
        {
            base.SetUp();

            // Establish feed for combined events, which contains the latency values
            CombinedEventStmt.Create(_runtime);

            // Establish listeners for testing
            listenerTotals     = new SupportUpdateListener();
            listenerByCustomer = new SupportUpdateListener();
            listenerBySupplier = new SupportUpdateListener();
            RealtimeSummaryStmt realtimeStmt = new RealtimeSummaryStmt(_runtime);

            realtimeStmt.TotalsStatement.Events   += listenerTotals.Update;
            realtimeStmt.CustomerStatement.Events += listenerByCustomer.Update;
            realtimeStmt.SupplierStatement.Events += listenerBySupplier.Update;

            // Use external clocking for the test
            _runtime.EventService.ClockExternal();
        }