Class OciVaultHealthCheck
- java.lang.Object
-
- io.helidon.integrations.oci.vault.health.OciVaultHealthCheck
-
- All Implemented Interfaces:
HealthCheck
@Liveness @ApplicationScoped @BuiltInHealthCheck public final class OciVaultHealthCheck extends Object implements HealthCheck
Liveness check for an OCI's Vault. Reads OCI properties from '~/.oci/config'.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OciVaultHealthCheck.Builder
Fluent API builder forOciVaultHealthCheck
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OciVaultHealthCheck.Builder
builder()
Create a new fluent API builder to configure a new health check.HealthCheckResponse
call()
Checks that the OCI vault is accessible, if defined.static OciVaultHealthCheck
create(Config config)
Create an instance.
-
-
-
Method Detail
-
builder
public static OciVaultHealthCheck.Builder builder()
Create a new fluent API builder to configure a new health check.- Returns:
- builder instance
-
create
public static OciVaultHealthCheck create(Config config)
Create an instance.- Parameters:
config
- the config.- Returns:
- an instance.
-
call
public HealthCheckResponse call()
Checks that the OCI vault is accessible, if defined. Will report error only if not defined or not accessible. Can block since all health checks are called asynchronously.- Specified by:
call
in interfaceHealthCheck
- Returns:
- a response
-
-