@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() |
long |
getDeadline()
Return the deadline of this call.
|
RPCProtos.RequestHeader |
getHeader() |
org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor |
getMethod() |
org.apache.hbase.thirdparty.com.google.protobuf.Message |
getParam() |
int |
getPriority() |
long |
getReceiveTime() |
int |
getRemotePort() |
org.apache.hbase.thirdparty.com.google.protobuf.BlockingService |
getService() |
long |
getSize()
Used to calculate the request call queue size.
|
long |
getStartTime() |
int |
getTimeout() |
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() |
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()
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–2019 Cloudera. All rights reserved.