Example usage for java.lang Process.HealthCheckData Process.HealthCheckData

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

Introduction

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

Prototype

Process.HealthCheckData

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