Package org.apache.hadoop.hbase.ipc
Class Call
java.lang.Object
org.apache.hadoop.hbase.ipc.Call
A call waiting for a value.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.apache.hbase.thirdparty.com.google.protobuf.RpcCallback<Call>
(package private) final MetricsConnection.CallStats
(package private) CellScanner
Optionally has cells when making call.private boolean
(package private) IOException
(package private) final int
(package private) final org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor
(package private) final org.apache.hbase.thirdparty.com.google.protobuf.Message
(package private) final int
(package private) org.apache.hbase.thirdparty.com.google.protobuf.Message
(package private) org.apache.hbase.thirdparty.com.google.protobuf.Message
(package private) final io.opentelemetry.api.trace.Span
(package private) final int
(package private) org.apache.hbase.thirdparty.io.netty.util.Timeout
-
Constructor Summary
ConstructorDescriptionCall
(int id, org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor md, org.apache.hbase.thirdparty.com.google.protobuf.Message param, CellScanner cells, org.apache.hbase.thirdparty.com.google.protobuf.Message responseDefaultType, int timeout, int priority, Map<String, byte[]> attributes, org.apache.hbase.thirdparty.com.google.protobuf.RpcCallback<Call> callback, MetricsConnection.CallStats callStats) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
long
boolean
boolean
isDone()
void
setException
(IOException error) Set the exception when there is an error.void
setResponse
(org.apache.hbase.thirdparty.com.google.protobuf.Message response, CellScanner cells) Set the return value when there is no error.void
setTimeout
(IOException error) called from timeoutTask, prevent self cancelBuilds a simplifiedtoString()
that includes just the id and method name.toString()
-
Field Details
-
id
-
param
-
cells
Optionally has cells when making call. Optionally has cells set on response. Used passing cells to the rpc and receiving the response. -
response
org.apache.hbase.thirdparty.com.google.protobuf.Message response -
responseDefaultType
org.apache.hbase.thirdparty.com.google.protobuf.Message responseDefaultType -
error
-
done
-
md
-
timeout
-
priority
-
attributes
-
callStats
-
callback
-
span
-
timeoutTask
org.apache.hbase.thirdparty.io.netty.util.Timeout timeoutTask
-
-
Constructor Details
-
Call
Call(int id, org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor md, org.apache.hbase.thirdparty.com.google.protobuf.Message param, CellScanner cells, org.apache.hbase.thirdparty.com.google.protobuf.Message responseDefaultType, int timeout, int priority, Map<String, byte[]> attributes, org.apache.hbase.thirdparty.com.google.protobuf.RpcCallback<Call> callback, MetricsConnection.CallStats callStats)
-
-
Method Details
-
toShortString
Builds a simplifiedtoString()
that includes just the id and method name. -
toString
-
setTimeout
called from timeoutTask, prevent self cancel -
callComplete
-
setException
Set the exception when there is an error. Notify the caller the call is done.- Parameters:
error
- exception thrown by the call; either local or remote
-
setResponse
public void setResponse(org.apache.hbase.thirdparty.com.google.protobuf.Message response, CellScanner cells) Set the return value when there is no error. Notify the caller the call is done.- Parameters:
response
- return value of the call.cells
- Can be null
-
isDone
-
getStartTime
-
isConnectionRegistryCall
-