- java.lang.Object
-
- io.helidon.grpc.server.ConstantHealthCheck
-
- All Implemented Interfaces:
org.eclipse.microprofile.health.HealthCheck
public class ConstantHealthCheck extends Object implements org.eclipse.microprofile.health.HealthCheck
A simpleHealthCheckimplementation that always returns the same response.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.microprofile.health.HealthCheckResponsecall()static org.eclipse.microprofile.health.HealthCheckdown(String name)Obtain aHealthCheckthat always returns a status of down.static org.eclipse.microprofile.health.HealthCheckup(String name)Obtain aHealthCheckthat always returns a status of up.
-
-
-
Method Detail
-
call
public org.eclipse.microprofile.health.HealthCheckResponse call()
- Specified by:
callin interfaceorg.eclipse.microprofile.health.HealthCheck
-
up
public static org.eclipse.microprofile.health.HealthCheck up(String name)
Obtain aHealthCheckthat always returns a status of up.- Parameters:
name- the service name that the health check is for- Returns:
- a
HealthCheckthat always returns a status of up
-
down
public static org.eclipse.microprofile.health.HealthCheck down(String name)
Obtain aHealthCheckthat always returns a status of down.- Parameters:
name- the service name that the health check is for- Returns:
- a
HealthCheckthat always returns a status of down
-
-