}
return running;
}
private void healthCheck(Id id) {
final HealthChecks healthChecks = repo.conf(id).getHealthChecks();
for (Ping ping : healthChecks.getPings()) {
LOGGER.info("pinging " + ping.getUrl());
if (!Pinger.ping(ping.getUrl(), ping.getTimeout())) {
throw new OrchestrationException("timeout waiting for " + ping.getUrl() + " for " + ping.getTimeout());
}
}