Class OciObjectStorageHealthCheck
java.lang.Object
io.helidon.integrations.oci.objectstorage.health.OciObjectStorageHealthCheck
- All Implemented Interfaces:
HealthCheck
@Liveness
@ApplicationScoped
@BuiltInHealthCheck
public final class OciObjectStorageHealthCheck
extends Object
implements HealthCheck
Liveness check for an OCI's ObjectStorage bucket. Reads configuration to
obtain bucket name as well as OCI properties from '~/.oci/config'.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFluent API builder forOciObjectStorageHealthCheck. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a new fluent API builder to configure a new health check.call()Checks that the OCI Object Storage buckets are accessible.static OciObjectStorageHealthCheckCreate an instance.
-
Method Details
-
builder
Create a new fluent API builder to configure a new health check.- Returns:
- builder instance
-
create
Create an instance.- Parameters:
config- the config.- Returns:
- an instance.
-
call
Checks that the OCI Object Storage buckets are accessible. Will report a status code or an error message for each bucket as data. Can block since all health checks are called asynchronously.- Specified by:
callin interfaceHealthCheck- Returns:
- a response
-