Class PingResult
java.lang.Object
com.couchbase.client.core.diagnostics.PingResult
-
Constructor Summary
ConstructorDescriptionPingResult
(Map<ServiceType, List<EndpointPingReport>> endpoints, String sdk, String id) Creates the new ping report. -
Method Summary
Modifier and TypeMethodDescriptionReturns the diagnostic reports of each individual endpoint.boolean
Exports this report into the standard JSON format which is consistent across different SDKs.int
hashCode()
id()
The ID of this report.sdk()
The identifier of this SDK (useful when exporting to JSON).toString()
int
version()
The version of this report (useful when exporting to JSON).
-
Constructor Details
-
PingResult
@Internal public PingResult(Map<ServiceType, List<EndpointPingReport>> endpoints, String sdk, String id) Creates the new ping report.Note that this is internal API and should not be called at the application level.
- Parameters:
endpoints
- the health of each individual endpoint.sdk
- the sdk identifier.id
- the report ID.
-
-
Method Details
-
id
The ID of this report.- Returns:
- the ID, either automatically generated or the one provided by the user.
-
version
public int version()The version of this report (useful when exporting to JSON).- Returns:
- the version format of this report.
-
sdk
The identifier of this SDK (useful when exporting to JSON).- Returns:
- the identifier of this SDK.
-
endpoints
Returns the diagnostic reports of each individual endpoint. -
exportToJson
Exports this report into the standard JSON format which is consistent across different SDKs.- Returns:
- the report encoded as JSON.
-
toString
-
equals
-
hashCode
public int hashCode()
-