예제 #1
0
        private static void InitializeNesper()
        {
            nesperConf = new com.espertech.esper.client.Configuration();
            nesperConf.AddEventType(typeof(Feed));

            epService = EPServiceProviderManager.GetDefaultProvider(nesperConf);
            _runtime  = epService.EPRuntime;
            mHandler  = new MessageHandler();
            mHandler.UpdatePrediction += Predict;
        }
예제 #2
0
        private static void InitializeNesper()
        {
            nesperConf = new com.espertech.esper.client.Configuration();
            nesperConf.AddEventType(typeof(Feed));

            epService = EPServiceProviderManager.GetDefaultProvider(nesperConf);
            _runtime = epService.EPRuntime;
            mHandler = new MessageHandler();
            mHandler.UpdatePrediction += Predict;
        }
예제 #3
0
            public void Init(int sleepListenerMillis)
            {
                Configuration configuration = new Configuration();

                configuration.EngineDefaults.EventMetaConfig.ClassPropertyResolutionStyle =
                    PropertyResolutionStyle.CASE_INSENSITIVE;
                configuration.AddEventType("Market", typeof(MarketData));
                EPServiceProvider epService = EPServiceProviderManager.GetProvider("benchmark", configuration);

                epAdministrator = epService.EPAdministrator;
                epRuntime       = epService.EPRuntime;
                sleepMillis     = sleepListenerMillis;
            }