Class PingRequest
- java.lang.Object
-
- com.couchbase.client.core.message.AbstractCouchbaseRequest
-
- com.couchbase.client.core.message.search.PingRequest
-
- All Implemented Interfaces:
CouchbaseMessage
,CouchbaseRequest
,DiagnosticRequest
,PrelocatedRequest
,SearchRequest
public class PingRequest extends AbstractCouchbaseRequest implements SearchRequest, DiagnosticRequest, PrelocatedRequest
-
-
Constructor Summary
Constructors Constructor Description PingRequest(String sendTo, String bucket, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods 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()
SocketAddress
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
-
-
-
-
Method Detail
-
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
-
path
public String path()
- Specified by:
path
in interfaceSearchRequest
-
localSocket
public SocketAddress localSocket()
- Specified by:
localSocket
in interfaceDiagnosticRequest
-
localSocket
public PingRequest localSocket(SocketAddress socket)
- Specified by:
localSocket
in interfaceDiagnosticRequest
-
remoteSocket
public SocketAddress remoteSocket()
- Specified by:
remoteSocket
in interfaceDiagnosticRequest
-
remoteSocket
public PingRequest remoteSocket(SocketAddress socket)
- Specified by:
remoteSocket
in interfaceDiagnosticRequest
-
sendTo
public String 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.
-
-