Exemplo n.º 1
0
        static void Main(string[] args)
        {
            switch (args[0])
            {
            case "-s":    //start a slave
                var my_slave = new MySlave();
                my_slave.Start(true);
                break;

            case "-m":    //start a proxy
                var my_proxy = new MyProxy();
                my_proxy.Start(true);
                break;

            case "-c":     // start a client for issuing queries
                TrinityConfig.CurrentRunningMode = RunningMode.Client;
                CreateGraph();

                Console.WriteLine("==========================");
                Console.WriteLine("Done with loading generated graph to Trinity!");
                Console.WriteLine();

                LaunchQueries();
                break;
            }
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            switch (args[0])
            {
                case "-s"://start a slave
                    var my_slave = new MySlave();
                    my_slave.Start(true);
                    break;
                case "-p"://start a proxy
                    var my_proxy = new MyProxy();
                    my_proxy.Start(true);
                    break;
                case "-c": // start a client for issuing queries
                    TrinityConfig.CurrentRunningMode = RunningMode.Client;
                    CreateGraph();

                    Console.WriteLine("==========================");
                    Console.WriteLine("Done with loading generated graph to Trinity!");
                    Console.WriteLine();

                    LaunchQueries();
                    break;
            }
        }