Java Code Examples for org.eclipse.microprofile.health.HealthCheckResponse#up()
The following examples show how to use
org.eclipse.microprofile.health.HealthCheckResponse#up() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ReadinessHealthCheck.java From javaee8-cookbook with Apache License 2.0 | 5 votes |
@Override public HealthCheckResponse call() { if (isAcessible()){ return HealthCheckResponse.up("I'm up and ready!"); } else{ return HealthCheckResponse.down("I'm up, but not ready..."); } }
Example 2
Source File: ShutdownReadinessCheck.java From quarkus with Apache License 2.0 | 5 votes |
@Override public HealthCheckResponse call() { if (shuttingDown) { return HealthCheckResponse.down(GRACEFUL_SHUTDOWN); } return HealthCheckResponse.up(GRACEFUL_SHUTDOWN); }
Example 3
Source File: SimpleHealthGroupCheck.java From quarkus with Apache License 2.0 | 4 votes |
@Override public HealthCheckResponse call() { return HealthCheckResponse.up("single"); }
Example 4
Source File: TestUpLivenessHC.java From thorntail with Apache License 2.0 | 4 votes |
@Override public HealthCheckResponse call() { return HealthCheckResponse.up(TestUpLivenessHC.class.getSimpleName()); }
Example 5
Source File: SuccessfulReadiness.java From microprofile-health with Apache License 2.0 | 4 votes |
@Override public HealthCheckResponse call() { return HealthCheckResponse.up("successful-check"); }
Example 6
Source File: SuccessfulLiveness.java From microprofile-health with Apache License 2.0 | 4 votes |
@Override public HealthCheckResponse call() { return HealthCheckResponse.up("successful-check"); }
Example 7
Source File: CheckWithoutQualifier.java From microprofile-health with Apache License 2.0 | 4 votes |
@Override public HealthCheckResponse call() { return HealthCheckResponse.up("check-without-annotation"); }
Example 8
Source File: CDIProducedProcedureCheck.java From microprofile-health with Apache License 2.0 | 4 votes |
@Produces @Liveness HealthCheck cdiProducedLivenessCheck() { return () -> HealthCheckResponse.up("cdi-produced-successful-check"); }
Example 9
Source File: LivenessHealthCheck.java From javaee8-cookbook with Apache License 2.0 | 4 votes |
@Override public HealthCheckResponse call() { return HealthCheckResponse.up("I'm up!"); }
Example 10
Source File: SimpleCombinedHealthGroupCheck.java From quarkus with Apache License 2.0 | 4 votes |
@Override public HealthCheckResponse call() { return HealthCheckResponse.up("combined"); }
Example 11
Source File: SimpleHealthCheck.java From intellij-quarkus with Eclipse Public License 2.0 | 4 votes |
@Override public HealthCheckResponse call() { return HealthCheckResponse.up("Simple health check"); }
Example 12
Source File: HealthUpdates.java From blog-tutorials with MIT License | 4 votes |
@Override public HealthCheckResponse call() { // HealthCheckResponse.named("my-liveness-check").up().build(); // HealthCheckResponse.builder().name("my-liveness-check").up().build(); return HealthCheckResponse.up("my-liveness-check"); }
Example 13
Source File: SimpleHealthCheck.java From quarkus-quickstarts with Apache License 2.0 | 4 votes |
@Override public HealthCheckResponse call() { return HealthCheckResponse.up("Simple health check"); }
Example 14
Source File: SuccessfulWellness.java From smallrye-health with Apache License 2.0 | 4 votes |
@Override public HealthCheckResponse call() { return HealthCheckResponse.up("successful-check"); }
Example 15
Source File: SuccessReadiness.java From smallrye-health with Apache License 2.0 | 4 votes |
@Override public HealthCheckResponse call() { return HealthCheckResponse.up(SuccessReadiness.class.getName()); }
Example 16
Source File: SuccessfulCustom.java From smallrye-health with Apache License 2.0 | 4 votes |
@Override public HealthCheckResponse call() { return HealthCheckResponse.up("successful-check"); }
Example 17
Source File: ChangingLivenessHealthCheck.java From smallrye-health with Apache License 2.0 | 4 votes |
@Override public HealthCheckResponse call() { return invocations.getAndIncrement() == 0 ? HealthCheckResponse.up("up") : HealthCheckResponse.down("down"); }
Example 18
Source File: SuccessLiveness.java From smallrye-health with Apache License 2.0 | 4 votes |
@Override public HealthCheckResponse call() { return HealthCheckResponse.up(SuccessLiveness.class.getName()); }
Example 19
Source File: Health.java From coffee-testing with Apache License 2.0 | 4 votes |
@Override public HealthCheckResponse call() { return HealthCheckResponse.up("coffee-shop"); }
Example 20
Source File: SimpleHealthCheck.java From intellij-quarkus with Eclipse Public License 2.0 | 4 votes |
@Override public HealthCheckResponse call() { return HealthCheckResponse.up("Simple health check"); }