@InterfaceAudience.LimitedPrivate(value={"Coprocesssor","Phoenix"}) @InterfaceStability.Evolving public interface RpcCall extends RpcCallContext
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Do the necessary cleanup after the call if needed.
|
CellScanner |
getCellScanner()
Returns The CellScanner that can carry input and result payload.
|
long |
getDeadline()
Return the deadline of this call.
|
org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.RequestHeader |
getHeader()
Returns The request header of this call.
|
org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor |
getMethod()
Returns The service method.
|
org.apache.hbase.thirdparty.com.google.protobuf.Message |
getParam()
Returns The call parameter message.
|
int |
getPriority()
Returns The Priority of this call.
|
long |
getReceiveTime()
Returns The timestamp when the call is constructed.
|
int |
getRemotePort()
Returns Port of remote address in this call
|
org.apache.hbase.thirdparty.com.google.protobuf.BlockingService |
getService()
Returns The service of this call.
|
long |
getSize()
Used to calculate the request call queue size.
|
long |
getStartTime()
Returns The time when the call starts to be executed.
|
int |
getTimeout()
Returns The timeout of this call.
|
void |
sendResponseIfReady()
Send the response of this RPC call.
|
void |
setResponse(org.apache.hbase.thirdparty.com.google.protobuf.Message param,
CellScanner cells,
Throwable errorThrowable,
String error)
Set the response resulting from this RPC call.
|
void |
setStartTime(long startTime)
Set the time when the call starts to be executed.
|
String |
toShortString()
Returns A short string format of this call without possibly lengthy params
|
disconnectSince, getClientVersionInfo, getRemoteAddress, getRequestUser, getRequestUserName, getResponseBlockSize, getResponseCellSize, getResponseExceptionSize, incrementResponseBlockSize, incrementResponseCellSize, incrementResponseExceptionSize, isClientCellBlockSupported, isRetryImmediatelySupported, setCallBack
org.apache.hbase.thirdparty.com.google.protobuf.BlockingService getService()
org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor getMethod()
org.apache.hbase.thirdparty.com.google.protobuf.Message getParam()
CellScanner getCellScanner()
long getReceiveTime()
long getStartTime()
void setStartTime(long startTime)
int getTimeout()
int getPriority()
long getDeadline()
long getSize()
org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.RequestHeader getHeader()
int getRemotePort()
void setResponse(org.apache.hbase.thirdparty.com.google.protobuf.Message param, CellScanner cells, Throwable errorThrowable, String error)
param
- The result message as response.cells
- The CellScanner that possibly carries the payload.errorThrowable
- The error Throwable resulting from the call.error
- Extra error message.void sendResponseIfReady() throws IOException
IOException
void cleanup()
String toShortString()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.