public class HealthPinger extends Object
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 and Description |
---|
HealthPinger() |
Modifier and Type | Method and Description |
---|---|
static rx.Single<PingReport> |
ping(CoreEnvironment env,
String bucket,
String password,
ClusterFacade core,
String id,
long timeout,
TimeUnit timeUnit,
ServiceType... types)
Performs a service ping against all or (if given) the services provided.
|
public static rx.Single<PingReport> ping(CoreEnvironment env, String bucket, String password, ClusterFacade core, String id, long timeout, TimeUnit timeUnit, ServiceType... types)
Performs a service ping against all or (if given) the services provided.
First, all the services are contacted with:
Afterwards, the responses are assembled into a PingReport
and returned.
env
- the environment to use.bucket
- the bucket namepassword
- the password of the bucketcore
- the core instance against to check.id
- the id of the ping to use, can be null.timeout
- the timeout for each individual and total ping report.timeUnit
- the time unit for the timeout value.types
- if present, limits the queried services for the given types.Copyright © 2018 Couchbase, Inc.. All rights reserved.