@Override protected void startUp() throws Exception { reactor.startAsync().awaitRunning(); }
@Override protected void startUp() throws Exception { log.debug("starting cache"); reactor.startAsync().awaitRunning(); reactor.signal(); }
@Override protected void startUp() throws Exception { hostUpdateReactor.startAsync().awaitRunning(); hostUpdateReactor.signal(); rollingUpdateReactor.startAsync().awaitRunning(); rollingUpdateReactor.signal(); }
public Supervisor(final Builder builder) { this.job = checkNotNull(builder.job, "job"); this.docker = checkNotNull(builder.dockerClient, "docker"); this.restartPolicy = checkNotNull(builder.restartPolicy, "restartPolicy"); this.metrics = checkNotNull(builder.metrics, "metrics"); this.listener = checkNotNull(builder.listener, "listener"); this.currentCommand = new Nop(); this.containerId = builder.existingContainerId; this.runnerFactory = checkNotNull(builder.runnerFactory, "runnerFactory"); this.statusUpdater = checkNotNull(builder.statusUpdater, "statusUpdater"); this.monitor = checkNotNull(builder.monitor, "monitor"); this.reactor = new DefaultReactor("supervisor-" + job.getId(), new Update(), SECONDS.toMillis(30)); this.reactor.startAsync(); statusUpdater.setContainerId(containerId); this.sleeper = builder.sleeper; }
@Override protected void startUp() throws Exception { for (final Entry<JobId, Execution> entry : executions.get().entrySet()) { final Execution execution = entry.getValue(); final Job job = execution.getJob(); if (execution.getPorts() != null) { createSupervisor(job, execution.getPorts()); } } model.addListener(modelListener); reactor.startAsync().awaitRunning(); reactor.signal(); }
@Override protected void startUp() throws Exception { zooKeeperRegistrar.startUp(); client.getConnectionStateListenable().addListener(listener); reactor.startAsync().awaitRunning(); reactor.signal(); }
@Override protected void startUp() throws Exception { client("startUp").getConnectionStateListenable().addListener(connectionStateListener); reactor.startAsync().awaitRunning(); reactor.signal(); }
@Override protected void startUp() throws Exception { reactor.startAsync().awaitRunning(); }
@Override protected void startUp() throws Exception { log.debug("starting cache"); reactor.startAsync().awaitRunning(); reactor.signal(); }
@Override protected void startUp() throws Exception { hostUpdateReactor.startAsync().awaitRunning(); hostUpdateReactor.signal(); rollingUpdateReactor.startAsync().awaitRunning(); rollingUpdateReactor.signal(); }
public Supervisor(final Builder builder) { this.job = checkNotNull(builder.job, "job"); this.docker = checkNotNull(builder.dockerClient, "docker"); this.restartPolicy = checkNotNull(builder.restartPolicy, "restartPolicy"); this.metrics = checkNotNull(builder.metrics, "metrics"); this.listener = checkNotNull(builder.listener, "listener"); this.currentCommand = new Nop(); this.containerId = builder.existingContainerId; this.runnerFactory = checkNotNull(builder.runnerFactory, "runnerFactory"); this.statusUpdater = checkNotNull(builder.statusUpdater, "statusUpdater"); this.monitor = checkNotNull(builder.monitor, "monitor"); this.reactor = new DefaultReactor("supervisor-" + job.getId(), new Update(), SECONDS.toMillis(30)); this.reactor.startAsync(); statusUpdater.setContainerId(containerId); this.sleeper = builder.sleeper; }
@Override protected void startUp() throws Exception { for (final Entry<JobId, Execution> entry : executions.get().entrySet()) { final Execution execution = entry.getValue(); final Job job = execution.getJob(); if (execution.getPorts() != null) { createSupervisor(job, execution.getPorts()); } } model.addListener(modelListener); reactor.startAsync().awaitRunning(); reactor.signal(); }
@Override protected void startUp() throws Exception { client("startUp").getConnectionStateListenable().addListener(connectionStateListener); reactor.startAsync().awaitRunning(); reactor.signal(); }
@Override protected void startUp() throws Exception { eventListener.startUp(); client.getConnectionStateListenable().addListener(listener); reactor.startAsync().awaitRunning(); reactor.signal(); }