public static void Main(string[] args) { LoggerNLog.BasicConfig(); LoggerNLog.Register(); new AppMain("MatchMaker", false).Run(); }
public static void Main() { LoggerNLog.BasicConfig(); LoggerNLog.Register(); using (TestAverageLatencyAlertMonitor testAverageLatencyAlertMonitor = new TestAverageLatencyAlertMonitor()) { testAverageLatencyAlertMonitor.SetUp(); testAverageLatencyAlertMonitor.TestLatencyAlert(); } using (TestDynamicLatencyAlertMonitor testDynamicLatencyAlertMonitor = new TestDynamicLatencyAlertMonitor()) { testDynamicLatencyAlertMonitor.SetUp(); testDynamicLatencyAlertMonitor.TestLatencyAlert(); } using (TestErrorRateMonitor testErrorRateMonitor = new TestErrorRateMonitor()) { testErrorRateMonitor.SetUp(); testErrorRateMonitor.TestAlert(); } using (TestLatencySpikeMonitor testLatencySpikeMonitor = new TestLatencySpikeMonitor()) { testLatencySpikeMonitor.SetUp(); testLatencySpikeMonitor.TestLatencyAlert(); } using (TestServiceHealthMonitor testServiceHealthMonitor = new TestServiceHealthMonitor()) { testServiceHealthMonitor.SetUp(); testServiceHealthMonitor.TestLatencyAlert(); } using (TestSpikeAndErrorRateMonitor testSpikeAndErrorRateMonitor = new TestSpikeAndErrorRateMonitor()) { testSpikeAndErrorRateMonitor.SetUp(); testSpikeAndErrorRateMonitor.TestAlert(); } }
public static void Main(string[] args) { LoggerNLog.BasicConfig(); LoggerNLog.Register(); if (args.Length < 1) { Console.Out.WriteLine("Arguments are: <numberOfEvents>"); Environment.Exit(-1); } int events; try { events = Int32.Parse(args[0]); } catch (NullReferenceException) { Console.Out.WriteLine("Invalid numberOfEvents:" + args[0]); Environment.Exit(-2); return; } // Prime a few assemblies into memory var tempA = new StockTick(null, 0.0); var tempB = new PriceLimit(null, null, 0.0); // Run the sample var autoIdSimMain = new AutoIdSimMain(events, "AutoIDSim"); autoIdSimMain.Run(); }
public void RunBeforeAnyTests() { #if NETSTANDARD2_0 #else //var clearScript = typeof(ScriptingEngineJScript); #endif // Ensure that AVRO support is loaded before we change directories SchemaBuilder.Record("dummy"); var dir = TestContext.CurrentContext.TestDirectory; if (dir != null) { Environment.CurrentDirectory = dir; Directory.SetCurrentDirectory(dir); } var logConfig = LoggerNLog.BasicConfig(); logConfig.AddRule( LogLevel.Info, LogLevel.Fatal, LoggerNLog.Console, "com.espertech.esper.regressionrun.runner.RegressionRunner"); logConfig.AddRule( LogLevel.Warn, LogLevel.Fatal, LoggerNLog.Console, "com.espertech.esper.regressionlib.support.multithread"); LoggerNLog.ResetConfig(logConfig); LoggerNLog.Register(); }
public static void Main() { LoggerNLog.BasicConfig(); LoggerNLog.Register(); using (FraudMonitorTest fraudMonitorTest = new FraudMonitorTest()) { fraudMonitorTest.SetUp(); fraudMonitorTest.TestJoin(); } }
public static void Main() { LoggerNLog.BasicConfig(); LoggerNLog.Register(); using (var testRSI = new TestRSI()) { testRSI.SetUp(); testRSI.TestFlow(); } }
public static void Main(String[] args) { LoggerNLog.BasicConfig(); LoggerNLog.Register(); var main = new NamedWindowQueryMain(); try { main.RunExample(false, "NamedWindowQuery"); } catch (Exception ex) { Log.Error("Unexpected error occured running example:" + ex.Message); } }
public void RunBeforeAnyTests() { var dir = TestContext.CurrentContext.TestDirectory; if (dir != null) { Environment.CurrentDirectory = dir; Directory.SetCurrentDirectory(dir); } var logConfig = LoggerNLog.BasicConfig(); LoggerNLog.ResetConfig(logConfig); LoggerNLog.Register(); }
/// <summary> /// Application entry point /// </summary> /// <param name="args"></param> public static void Main(String[] args) { LoggerNLog.BasicConfig(); LoggerNLog.Register(); if (args.Length < 2) { Console.Out.WriteLine("Arguments are: <bucket_size> <num_transactions>"); Environment.Exit(-1); } int?bucketSize; try { bucketSize = BUCKET_SIZES.Get(args[0]); } catch (NullReferenceException) { Console.Out.WriteLine("Invalid bucket size:"); foreach (String key in BUCKET_SIZES.Keys) { Console.Out.WriteLine("\t" + key + " -> " + BUCKET_SIZES.Get(key)); } Environment.Exit(-2); return; } int numTransactions; try { numTransactions = Int32.Parse(args[1]); } catch (FormatException) { Console.Out.WriteLine("Invalid num transactions"); Environment.Exit(-2); return; } // Run the sample Console.Out.WriteLine("Using bucket size of " + bucketSize + " with " + numTransactions + " transactions"); TxnGenMain txnGenMain = new TxnGenMain(bucketSize.Value, numTransactions, "TransactionExample", false); txnGenMain.Run(); }
public static void Main() { LoggerNLog.BasicConfig(); LoggerNLog.Register(); new StockTickerMain("StockTicker", false).Run(); #if false using (TestStockTickerGenerator testStockTickerGenerator = new TestStockTickerGenerator()) { testStockTickerGenerator.TestFlow(); testStockTickerGenerator.TestMakeStream(); } using (TestStockTickerSimple testStockTickerSimple = new TestStockTickerSimple()) { testStockTickerSimple.SetUp(); testStockTickerSimple.TestStockTicker(); } using (TestStockTickerMultithreaded testStockTickerMultithreaded = new TestStockTickerMultithreaded()) { testStockTickerMultithreaded.SetUp(); testStockTickerMultithreaded.TestMultithreaded(); } #endif }
static void Main() { LoggerNLog.BasicConfig(); LoggerNLog.Register(); Process.GetCurrentProcess().PriorityBoostEnabled = true; Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.RealTime; SetupEsper(); #if false PropertyAccess.MeasureNative(); PropertyAccess.MeasureNativeLambda(); PropertyAccess.MeasureMagic(); ThreadLocal.MeasureXperThreadLocal(); ThreadLocal.MeasureSlimThreadLocal(); ThreadLocal.MeasureFastThreadLocal(); ThreadLocal.MeasureSystemThreadLocal(); #endif //PerformanceTestIdentNode(); PerformanceTestQuery(); }
public static void Main(String[] args) { LoggerNLog.BasicConfig(); LoggerNLog.Register(); if (args.Length < 3) { Console.WriteLine( "Arguments are: <number of threads> <drop probability percent> <number of seconds to run>"); Console.WriteLine(" number of threads: the number of threads sending feed events into the engine"); Console.WriteLine(" drop probability percent: a number between zero and 100 that dictates the "); Console.WriteLine(" probability that per second one of the feeds drops off"); Console.WriteLine(" number of seconds: the number of seconds the simulation runs"); Environment.Exit(-1); } int numberOfThreads; try { numberOfThreads = Int32.Parse(args[0]); } catch (ArgumentException) { Console.WriteLine("Invalid number of threads: " + args[0]); Environment.Exit(-2); return; } double dropProbability; try { dropProbability = Double.Parse(args[1]); } catch (ArgumentException) { Console.WriteLine("Invalid drop probability:" + args[1]); Environment.Exit(-2); return; } int numberOfSeconds; try { numberOfSeconds = Int32.Parse(args[2]); } catch (ArgumentException) { Console.WriteLine("Invalid number of seconds to run:" + args[2]); Environment.Exit(-2); return; } // Run the sample Console.WriteLine("Using " + numberOfThreads + " threads with a drop probability of " + dropProbability + "%, for " + numberOfSeconds + " seconds"); var feedSimMain = new FeedSimMain(numberOfThreads, dropProbability, numberOfSeconds, true, "FeedSimMain"); feedSimMain.Run(); }