List of usage examples for java.lang Process.HealthCheckData Process.HealthCheckData
Process.HealthCheckData
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;//from w ww.j a va2 s. c o m if (healthCheckEndpoint != null && !healthCheckEndpoint.isEmpty()) { healthCheck.setData(new Process.HealthCheckData().setEndpoint(healthCheckEndpoint)); } safelyCall(() -> api.updateProcess(guid, new UpdateProcess(command, healthCheck))); }