Ejemplo n.º 1
0
 MasterMain startMaster(final CuratorClientFactory curatorClientFactory, final String... args)
     throws Exception {
   final MasterMain main = new MasterMain(curatorClientFactory, args);
   main.startAsync().awaitRunning();
   services.add(main);
   return main;
 }
Ejemplo n.º 2
0
 protected MasterMain startMaster(
     final Map<String, String> environmentVariables, final String... args) throws Exception {
   final MasterMain main = new MasterMain(environmentVariables, args);
   main.startAsync().awaitRunning();
   services.add(main);
   return main;
 }