예제 #1
0
        public bool Init()
        {
            masterService = new MasterService("tcp://localhost:8080/Master");
            coordinatorService = new CoordinatorService(masterService);
            //timestampService = new TimestampService();
            debugService = new DebugService(masterService);

            return true;
        }
예제 #2
0
 public static bool Init()
 {
     try
     {
         masterService = new MasterService("tcp://localhost:8080/Master");
         coordinatorService = new CoordinatorService(masterService);
         //timestampService = new TimestampService();
         debugService = new DebugService(masterService);
     }
     catch (Exception e)
     {
         Console.WriteLine(e.Message);
         return false;
     }
     return true;
 }