File tree 1 file changed +6
-6
lines changed
instructions/cloud-hosted-draft-guide-development-1
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -334,21 +334,21 @@ import org.eclipse.microprofile.health.HealthCheckResponse;
334
334
@ApplicationScoped
335
335
public class SystemReadinessCheck implements HealthCheck {
336
336
337
- private static final String readinessCheck = SystemResource.class.getSimpleName()
337
+ private static final String READINESS_CHECK = SystemResource.class.getSimpleName()
338
338
+ " Readiness Check";
339
339
340
340
@Inject
341
341
@ConfigProperty(name = "io_openliberty_guides_system_inMaintenance")
342
342
Provider<String> inMaintenance;
343
-
343
+
344
344
@Override
345
345
public HealthCheckResponse call() {
346
346
if (inMaintenance != null && inMaintenance.get().equalsIgnoreCase("true")) {
347
- return HealthCheckResponse.down(readinessCheck );
347
+ return HealthCheckResponse.down(READINESS_CHECK );
348
348
}
349
- return HealthCheckResponse.up(readinessCheck );
349
+ return HealthCheckResponse.up(READINESS_CHECK );
350
350
}
351
-
351
+
352
352
}
353
353
```
354
354
{: codeblock}
@@ -400,7 +400,7 @@ public class SystemLivenessCheck implements HealthCheck {
400
400
.withData("memory max", memMax)
401
401
.status(memUsed < memMax * 0.9).build();
402
402
}
403
-
403
+
404
404
}
405
405
```
406
406
{: codeblock}
You can’t perform that action at this time.
0 commit comments