Class PingRequest
java.lang.Object
com.couchbase.client.core.message.AbstractCouchbaseRequest
com.couchbase.client.core.message.analytics.PingRequest
- All Implemented Interfaces:
AnalyticsRequest
,CouchbaseMessage
,CouchbaseRequest
,DiagnosticRequest
,PrelocatedRequest
public class PingRequest extends AbstractCouchbaseRequest implements AnalyticsRequest, PrelocatedRequest, DiagnosticRequest
-
Constructor Summary
Constructors Constructor Description PingRequest(String sendTo, String bucket, String password)
-
Method Summary
Modifier and Type Method Description protected void
afterSpanSet(io.opentracing.Span span)
Use this method to add custom span values on insert.SocketAddress
localSocket()
PingRequest
localSocket(SocketAddress socket)
String
path()
Get path to construct the uriSocketAddress
remoteSocket()
PingRequest
remoteSocket(SocketAddress socket)
String
sendTo()
The hostname to send this request to, or null to use defaultnode location process
.Methods inherited from class com.couchbase.client.core.message.AbstractCouchbaseRequest
bucket, complete, creationTime, dispatchHostname, dispatchHostname, emit, fail, incrementRetryCount, isActive, lastLocalId, lastLocalId, lastLocalSocket, lastLocalSocket, lastRemoteSocket, lastRemoteSocket, maxRetryDuration, maxRetryDuration, observable, operationId, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, span, span, subscriber, succeed, toString, username
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.couchbase.client.core.message.CouchbaseMessage
creationTime
Methods inherited from interface com.couchbase.client.core.message.CouchbaseRequest
bucket, complete, dispatchHostname, dispatchHostname, emit, fail, incrementRetryCount, isActive, lastLocalId, lastLocalId, lastLocalSocket, lastLocalSocket, lastRemoteSocket, lastRemoteSocket, maxRetryDuration, maxRetryDuration, observable, operationId, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, span, span, subscriber, succeed, username
-
Constructor Details
-
PingRequest
-
-
Method Details
-
afterSpanSet
protected void afterSpanSet(io.opentracing.Span span)Description copied from class:AbstractCouchbaseRequest
Use this method to add custom span values on insert.- Overrides:
afterSpanSet
in classAbstractCouchbaseRequest
-
localSocket
- Specified by:
localSocket
in interfaceDiagnosticRequest
-
localSocket
- Specified by:
localSocket
in interfaceDiagnosticRequest
-
remoteSocket
- Specified by:
remoteSocket
in interfaceDiagnosticRequest
-
remoteSocket
- Specified by:
remoteSocket
in interfaceDiagnosticRequest
-
sendTo
Description copied from interface:PrelocatedRequest
The hostname to send this request to, or null to use defaultnode location process
.- Specified by:
sendTo
in interfacePrelocatedRequest
- Returns:
- the address of the target node or null to revert to default dispatching.
-
path
Description copied from interface:AnalyticsRequest
Get path to construct the uri- Specified by:
path
in interfaceAnalyticsRequest
-