Example usage for java.lang Process.HealthCheck Process.HealthCheck

List of usage examples for java.lang Process.HealthCheck Process.HealthCheck

Introduction

In this page you can find the example usage for java.lang Process.HealthCheck Process.HealthCheck.

Prototype

Process.HealthCheck

Source Link

Usage

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)));
}