public HealthServiceAsync getHealthService() { if (healthService == null) { HealthServiceBuilder builder = getHealthServiceBuilder(); healthService = builder.setAutoFlush().buildAndStart(); } return healthService; }
/** * @return HealthServiceBuilder */ public HealthServiceBuilder getHealthServiceBuilder() { if (healthServiceBuilder == null) { healthServiceBuilder = HealthServiceBuilder.healthServiceBuilder(); } return healthServiceBuilder; }
public ServiceQueue getServiceQueue() { if (serviceQueue == null) { serviceQueue = getServiceBuilder().setServiceObject(getImplementation()).build(); } return serviceQueue; }
public HealthService getImplementation() { if (implementation == null) { implementation = new HealthServiceImpl(getStatKeyPrefix(), getReactor(), getTimer(), getStatsCollector(), getRecheckInterval(), getTimeUnit(), getHealthCheckJobs(), getOnFail(), getOnWarn(), getOnCheckIn()); } return implementation; }
public HealthServiceAsync getHealthService() { if (healthServiceBuilder == null) { if (healthService == null) { HealthServiceBuilder builder = getHealthServiceBuilder(); healthService = builder.setAutoFlush().buildAndStart(); } return healthService; } else { return healthServiceBuilder.buildHealthSystemReporter(); } }
@Before public void setUp() throws Exception { timer = new TestTimer(); healthServiceBuilder = healthServiceBuilder(); healthService = healthServiceBuilder.setTimer(timer).setAutoFlush().buildAndStart(); }
@Before public void setUp() throws Exception { timer = new TestTimer(); healthService = (HealthServiceImpl) HealthServiceBuilder.healthServiceBuilder() .setTimer(timer).getImplementation(); }
public HealthServiceAsync buildAndStart() { HealthServiceAsync proxy = getProxy(); getServiceQueue().start(); getServiceQueue().startCallBackHandler(); return proxy; }
public HealthServiceBuilder addJob(final HealthCheckJob healthCheckJob) { this.getHealthCheckJobs().add(healthCheckJob); return this; }
public HealthServiceAsync getHealthService() { if (healthService == null) { healthService = getHealthServiceBuilder().buildAndStart(); } return healthService; }
public static HealthServiceBuilder healthServiceBuilder() { return new HealthServiceBuilder(); }
public HealthServiceAsync build() { return getProxy(); }
public HealthService getImplementation() { if (implementation == null) { implementation = new HealthServiceImpl(getStatKeyPrefix(), getReactor(), getTimer(), getStatsCollector(), getRecheckInterval(), getTimeUnit(), getHealthCheckJobs(), getOnFail(), getOnWarn(), getOnCheckIn()); } return implementation; }
public HealthServiceAsync buildAndStart() { HealthServiceAsync proxy = getProxy(); getServiceQueue().start(); getServiceQueue().startCallBackHandler(); return proxy; }
public HealthServiceBuilder addJob(final String name, final Duration duration, final HealthCheck healthCheck) { this.getHealthCheckJobs().add(new HealthCheckJob(healthCheck, duration, name)); return this; }
public static HealthServiceBuilder healthServiceBuilder() { return new HealthServiceBuilder(); }
public HealthServiceAsync build() { return getProxy(); }
public HealthService getImplementation() { if (implementation == null) { implementation = new HealthServiceImpl(getStatKeyPrefix(), getReactor(), getTimer(), getStatsCollector(), getRecheckInterval(), getTimeUnit(), getHealthCheckJobs(), getOnFail(), getOnWarn(), getOnCheckIn()); } return implementation; }
public HealthServiceAsync getHealthService() { if (healthService == null) { HealthServiceBuilder builder = getHealthServiceBuilder(); healthService = builder.setAutoFlush().buildAndStart(); } return healthService; }
public ServiceQueue getServiceQueue() { if (serviceQueue == null) { serviceQueue = getServiceBuilder().setServiceObject(getImplementation()).build(); } return serviceQueue; }