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 Classes Modifier and Type Class Description static classOciObjectStorageHealthCheck.BuilderFluent API builder forOciObjectStorageHealthCheck.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OciObjectStorageHealthCheck.Builderbuilder()Create a new fluent API builder to configure a new health check.HealthCheckResponsecall()Checks that the OCI Object Storage buckets are accessible.static OciObjectStorageHealthCheckcreate(Config config)Create an instance.
-
-
-
Method Detail
-
builder
public static OciObjectStorageHealthCheck.Builder builder()
Create a new fluent API builder to configure a new health check.- Returns:
- builder instance
-
create
public static OciObjectStorageHealthCheck create(Config config)
Create an instance.- Parameters:
config- the config.- Returns:
- an instance.
-
call
public HealthCheckResponse 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
-
-