Class RmHealthProbeClientImpl
java.lang.Object
io.confluent.rm.kafka.v1.RmHealthProbeClientImpl
- All Implemented Interfaces:
RmHealthProbeClient
Implementation of
RmHealthProbeClient using RmClient.
Manages the synthetic HealthProbe resources used for per-broker metadata
healthchecks. HealthProbe is Environment-scoped ([org, environment]); the scope is
embedded in the ObjectIdentifier passed to each operation, following the same
identifier-scope convention as RmGroupConfigClientImpl.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<io.confluent.rm.kafka.v1.HealthProbe> createHealthProbe(io.confluent.rm.kafka.v1.HealthProbe healthProbe) Creates a new HealthProbe resource in the resource manager.CompletableFuture<Optional<io.confluent.rm.kafka.v1.HealthProbe>> deleteHealthProbe(io.confluent.resourcemanager.api.model.identifier.ObjectIdentifier<io.confluent.rm.kafka.v1.HealthProbe> id) Deletes a HealthProbe resource from the resource manager.CompletableFuture<Optional<io.confluent.rm.kafka.v1.HealthProbe>> getHealthProbe(io.confluent.resourcemanager.api.model.identifier.ObjectIdentifier<io.confluent.rm.kafka.v1.HealthProbe> id) Retrieves a HealthProbe resource from the resource manager.RmWatcher<io.confluent.rm.kafka.v1.HealthProbe> Creates a watcher for monitoring HealthProbe changes in the resource manager.CompletableFuture<io.confluent.resourcemanager.api.model.ObjectList<io.confluent.rm.kafka.v1.HealthProbe>> listHealthProbes(List<io.confluent.resourcemanager.protobuf.apis.meta.v1.ScopeAttribute> scope, String continueToken) Lists a single page of HealthProbe resources in the given scope.
-
Constructor Details
-
RmHealthProbeClientImpl
-
-
Method Details
-
createHealthProbe
public CompletableFuture<io.confluent.rm.kafka.v1.HealthProbe> createHealthProbe(io.confluent.rm.kafka.v1.HealthProbe healthProbe) Description copied from interface:RmHealthProbeClientCreates a new HealthProbe resource in the resource manager.- Specified by:
createHealthProbein interfaceRmHealthProbeClient- Parameters:
healthProbe- the HealthProbe to create- Returns:
- a CompletableFuture that completes with the created HealthProbe
-
getHealthProbe
public CompletableFuture<Optional<io.confluent.rm.kafka.v1.HealthProbe>> getHealthProbe(io.confluent.resourcemanager.api.model.identifier.ObjectIdentifier<io.confluent.rm.kafka.v1.HealthProbe> id) Description copied from interface:RmHealthProbeClientRetrieves a HealthProbe resource from the resource manager.- Specified by:
getHealthProbein interfaceRmHealthProbeClient- Parameters:
id- the identifier of the HealthProbe to retrieve, with environment scope attributes- Returns:
- a CompletableFuture that completes with an Optional containing the HealthProbe, or empty if the HealthProbe was not found
-
deleteHealthProbe
public CompletableFuture<Optional<io.confluent.rm.kafka.v1.HealthProbe>> deleteHealthProbe(io.confluent.resourcemanager.api.model.identifier.ObjectIdentifier<io.confluent.rm.kafka.v1.HealthProbe> id) Description copied from interface:RmHealthProbeClientDeletes a HealthProbe resource from the resource manager.- Specified by:
deleteHealthProbein interfaceRmHealthProbeClient- Parameters:
id- the identifier of the HealthProbe to delete, with environment scope attributes- Returns:
- a CompletableFuture that completes with an Optional containing the deleted HealthProbe, or empty if the HealthProbe was not found
-
listHealthProbes
public CompletableFuture<io.confluent.resourcemanager.api.model.ObjectList<io.confluent.rm.kafka.v1.HealthProbe>> listHealthProbes(List<io.confluent.resourcemanager.protobuf.apis.meta.v1.ScopeAttribute> scope, String continueToken) Description copied from interface:RmHealthProbeClientLists a single page of HealthProbe resources in the given scope. Pass a null/emptycontinueTokenfor the first page, or thecontinuetoken from a previous page'sListMetato fetch the next page.- Specified by:
listHealthProbesin interfaceRmHealthProbeClient- Parameters:
scope- the scope attributes to list withincontinueToken- the continuation token from a previous page, or null/empty for the first- Returns:
- a CompletableFuture that completes with the page of HealthProbe resources in the scope
-
healthProbeWatch
Description copied from interface:RmHealthProbeClientCreates a watcher for monitoring HealthProbe changes in the resource manager.- Specified by:
healthProbeWatchin interfaceRmHealthProbeClient- Returns:
- a Watcher that notifies of HealthProbe creation, modification, and deletion events
-