Examples of startAsync()


Examples of com.google.common.util.concurrent.Service.startAsync()

        });
  }

  private Service boot() {
    Service service = injector.getInstance(CronLifecycle.class);
    service.startAsync().awaitRunning();
    return service;
  }

  @Test
  public void testCronSchedulerLifecycle() throws Exception {
View Full Code Here

Examples of com.google.common.util.concurrent.ServiceManager.startAsync()

        pinger.ping();

        final ServiceManager serviceManager = injector.getInstance(ServiceManager.class);
        final ServiceManagerListener serviceManagerListener = injector.getInstance(ServiceManagerListener.class);
        serviceManager.addListener(serviceManagerListener);
        serviceManager.startAsync().awaitHealthy();

        LOG.info("Graylog2 Radio up and running.");

        while (true) {
            try { Thread.sleep(1000); } catch (InterruptedException e) { /* lol, i don't care */ }
View Full Code Here

Examples of com.google.common.util.concurrent.ServiceManager.startAsync()

        }
      }
      // check that the parameters are valid
      injector.getInstance(BenchmarkClass.class).validateParameters(options.userParameters());
      ServiceManager serviceManager = injector.getInstance(ServiceManager.class);
      serviceManager.startAsync().awaitHealthy();
      try {
        CaliperRun run = injector.getInstance(CaliperRun.class); // throws wrapped ICE, IBE
        run.run(); // throws IBE
      } finally {
        serviceManager.stopAsync();
View Full Code Here

Examples of com.spotify.helios.agent.AgentMain.startAsync()

    return main;
  }

  protected AgentMain startAgent(final String... args) throws Exception {
    final AgentMain main = new AgentMain(args);
    main.startAsync().awaitRunning();
    services.add(main);
    return main;
  }

  protected JobId createJob(final String name,
View Full Code Here

Examples of com.spotify.helios.master.MasterMain.startAsync()

    return startAgent(argsList.toArray(new String[argsList.size()]));
  }

  protected MasterMain startMaster(final String... args) throws Exception {
    final MasterMain main = new MasterMain(args);
    main.startAsync().awaitRunning();
    services.add(main);
    return main;
  }

  MasterMain startMaster(final CuratorClientFactory curatorClientFactory,
View Full Code Here

Examples of com.spotify.helios.master.MasterMain.startAsync()

  }

  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;
  }

  protected AgentMain startAgent(final String... args) throws Exception {
View Full Code Here

Examples of de.jochenbrissier.backyard.core.Backyard.startAsync()

        // if the implementation is a non Tomcat implementation invoke
        // the normal
        if (req.getAttribute("de.jochenbrissier.byw.comet") != null
            && req.getAttribute("de.jochenbrissier.byw.comet")
                .equals("nonTomcat")) {
          backyard.startAsync();
        } else {
          backyard.startAsync(ev);
        }
      }
View Full Code Here

Examples of de.jochenbrissier.backyard.core.Backyard.startAsync()

        if (req.getAttribute("de.jochenbrissier.byw.comet") != null
            && req.getAttribute("de.jochenbrissier.byw.comet")
                .equals("nonTomcat")) {
          backyard.startAsync();
        } else {
          backyard.startAsync(ev);
        }
      }

      if (function.matches("listen")) {
        log.debug("listen");
View Full Code Here

Examples of de.jochenbrissier.backyard.core.Backyard.startAsync()

        // if the implementation is a non Tomcat implementation invoke
        // the normal
        if (req.getAttribute("de.jochenbrissier.byw.comet") != null
            && req.getAttribute("de.jochenbrissier.byw.comet")
                .equals("nonTomcat")) {
          backyard.startAsync();
        } else {
          backyard.startAsync(ev);
        }
      }
View Full Code Here

Examples of de.jochenbrissier.backyard.core.Backyard.startAsync()

        if (req.getAttribute("de.jochenbrissier.byw.comet") != null
            && req.getAttribute("de.jochenbrissier.byw.comet")
                .equals("nonTomcat")) {
          backyard.startAsync();
        } else {
          backyard.startAsync(ev);
        }
      }

      if (function.matches("listen")) {
        log.debug("listen");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.