List of usage examples for java.lang Process.HealthCheck Process.HealthCheck
Process.HealthCheck
From source file:com.netflix.spinnaker.clouddriver.cloudfoundry.client.Applications.java
public void updateProcess(String guid, @Nullable String command, @Nullable String healthCheckType, @Nullable String healthCheckEndpoint) throws CloudFoundryApiException { final Process.HealthCheck healthCheck = healthCheckType != null ? new Process.HealthCheck().setType(healthCheckType) : null;/* w ww.java 2 s.co m*/ if (healthCheckEndpoint != null && !healthCheckEndpoint.isEmpty()) { healthCheck.setData(new Process.HealthCheckData().setEndpoint(healthCheckEndpoint)); } safelyCall(() -> api.updateProcess(guid, new UpdateProcess(command, healthCheck))); }