Class HealthPinger
java.lang.Object
com.couchbase.client.core.diagnostics.HealthPinger
The
HealthPinger
allows to "ping" individual services with real operations for their health.
This can be used by up the stack code to assert the given state of a connected cluster and/or bucket.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Mono
<PingResult> ping
(Core core, Optional<Duration> timeout, RetryStrategy retryStrategy, Set<ServiceType> serviceTypes, Optional<String> reportId, Optional<String> bucketName) static Mono
<PingResult> ping
(Core core, Optional<Duration> timeout, RetryStrategy retryStrategy, Set<ServiceType> serviceTypes, Optional<String> reportId, Optional<String> bucketName, WaitUntilReadyHelper.WaitUntilReadyLogger log) Performs a service ping against all or (if given) the services provided.
-
Constructor Details
-
HealthPinger
public HealthPinger()
-
-
Method Details
-
ping
@Internal public static Mono<PingResult> ping(Core core, Optional<Duration> timeout, RetryStrategy retryStrategy, Set<ServiceType> serviceTypes, Optional<String> reportId, Optional<String> bucketName) -
ping
@Internal public static Mono<PingResult> ping(Core core, Optional<Duration> timeout, RetryStrategy retryStrategy, Set<ServiceType> serviceTypes, Optional<String> reportId, Optional<String> bucketName, WaitUntilReadyHelper.WaitUntilReadyLogger log) Performs a service ping against all or (if given) the services provided.- Parameters:
core
- the core instance against to check.timeout
- the timeout for each individual and total ping report.retryStrategy
- the retry strategy to use for each ping.serviceTypes
- if present, limits the queried services for the given types.- Returns:
- a mono that completes once all pings have been completed as well.
-