public void SetUp()
        {
            _listener = new StockTickerResultListener();

            var configuration = new Configuration();

            configuration.AddEventType("PriceLimit", typeof(PriceLimit).FullName);
            configuration.AddEventType("StockTick", typeof(StockTick).FullName);

            _epService = EPServiceProviderManager.GetProvider("TestStockTickerMultithreaded", configuration);
            _epService.Initialize();
            new StockTickerMonitor(_epService, _listener);
        }
Beispiel #2
0
        public void SetUp()
        {
            _listener = new StockTickerResultListener();

            var configuration = new Configuration();

            configuration.AddEventType("PriceLimit", typeof(PriceLimit).FullName);
            configuration.AddEventType("StockTick", typeof(StockTick).FullName);

            _epService = EPServiceProviderManager.GetProvider("TestStockTickerSimple", configuration);

            // To reduce logging noise and get max performance
            _epService.EPRuntime.SendEvent(new TimerControlEvent(TimerControlEvent.ClockTypeEnum.CLOCK_EXTERNAL));
        }
        public void SetUp()
        {
            _listener = new StockTickerResultListener();

            var container = ContainerExtensions.CreateDefaultContainer(false)
                            .InitializeDefaultServices()
                            .InitializeDatabaseDrivers();

            var configuration = new Configuration(container);

            configuration.Common.AddEventType("PriceLimit", typeof(PriceLimit).FullName);
            configuration.Common.AddEventType("StockTick", typeof(StockTick).FullName);

            _runtime = EPRuntimeProvider.GetRuntime("TestStockTickerMultithreaded", configuration);
            _runtime.Initialize();
            new StockTickerMonitor(_runtime, _listener);
        }
Beispiel #4
0
        public void SetUp()
        {
            _listener = new StockTickerResultListener();

            var container = ContainerExtensions.CreateDefaultContainer(false)
                            .InitializeDefaultServices()
                            .InitializeDatabaseDrivers();

            var configuration = new Configuration(container);

            configuration.AddEventType("PriceLimit", typeof(PriceLimit).FullName);
            configuration.AddEventType("StockTick", typeof(StockTick).FullName);

            _epService = EPServiceProviderManager.GetProvider(
                container, "TestStockTickerSimple", configuration);

            // To reduce logging noise and get max performance
            _epService.EPRuntime.SendEvent(new TimerControlEvent(TimerControlEvent.ClockTypeEnum.CLOCK_EXTERNAL));
        }
Beispiel #5
0
        public void SetUp()
        {
            _listener = new StockTickerResultListener();

            var container = ContainerExtensions.CreateDefaultContainer(false)
                            .InitializeDefaultServices()
                            .InitializeDatabaseDrivers();

            var configuration = new Configuration(container);

            configuration.Common.AddEventType("PriceLimit", typeof(PriceLimit));
            configuration.Common.AddEventType("StockTick", typeof(StockTick));

            _runtime = EPRuntimeProvider.GetRuntime("TestStockTickerSimple", configuration);

            // To reduce logging noise and get max performance
            _runtime.EventService.ClockExternal();

            _priceLimitSender = _runtime.EventService.GetEventSender("PriceLimit");
            _stockTickSender  = _runtime.EventService.GetEventSender("StockTick");
        }