Exemplo n.º 1
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("TestStockTickerMultithreaded", configuration);
            _epService.Initialize();
            new StockTickerMonitor(_epService, _listener);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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));
        }
Exemplo n.º 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");
        }