Example #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public static void main(String[] argv) throws java.io.IOException
        public static void Main(string[] argv)
        {
            ServerCommandLineArgs args = ServerCommandLineArgs.parse(argv);

            // This sysout will be intercepted by the parent process and will trigger
            // a start of a timeout. The whole reason for this class to be here is to
            // split awaiting for the process to start and actually awaiting the cluster client to start.
            Console.WriteLine(START_SIGNAL);
            using (ArbiterBootstrapper arbiter = new ArbiterBootstrapper())
            {
                arbiter.Start(args.HomeDir(), args.ConfigFile(), Collections.emptyMap());
                Console.Read();
            }
        }
Example #2
0
        public static void Main(string[] argv)
        {
            ServerCommandLineArgs args = ServerCommandLineArgs.parse(argv);

            if (args.Version())
            {
                Console.WriteLine("neo4j " + neo4jVersion());
            }
            else
            {
                int status = (new ArbiterBootstrapper()).Start(args.HomeDir(), args.ConfigFile(), Collections.emptyMap());
                if (status != 0)
                {
                    Environment.Exit(status);
                }
            }
        }