@FunctionalInterface public interface ClusterHealthCheck
Modifier and Type | Method and Description |
---|---|
SuccessOrFailure |
isClusterHealthy(Cluster cluster) |
static ClusterHealthCheck |
nativeHealthChecks()
Returns a check that the native "healthcheck" status of the docker containers is not unhealthy.
|
static ClusterHealthCheck |
serviceHealthCheck(List<String> containerNames,
HealthCheck<List<Container>> delegate) |
static ClusterHealthCheck |
serviceHealthCheck(String containerName,
HealthCheck<Container> containerCheck) |
static <T> ClusterHealthCheck |
transformingHealthCheck(Function<Cluster,T> transform,
HealthCheck<T> healthCheck) |
static ClusterHealthCheck serviceHealthCheck(List<String> containerNames, HealthCheck<List<Container>> delegate)
static ClusterHealthCheck serviceHealthCheck(String containerName, HealthCheck<Container> containerCheck)
static <T> ClusterHealthCheck transformingHealthCheck(Function<Cluster,T> transform, HealthCheck<T> healthCheck)
static ClusterHealthCheck nativeHealthChecks()
Does not wait for DOWN or PAUSED containers, or containers with no healthcheck defined.
SuccessOrFailure isClusterHealthy(Cluster cluster) throws InterruptedException
InterruptedException
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.