@InterfaceAudience.LimitedPrivate(value={"Coprocesssor","Phoenix"}) @InterfaceStability.Evolving public class RpcServer.Call extends Object implements RpcCallContext
| Modifier and Type | Field and Description |
|---|---|
private ByteBuffer |
cellBlock |
protected CellScanner |
cellScanner |
protected RpcServer.Connection |
connection |
protected org.apache.hadoop.hbase.protobuf.generated.RPCProtos.RequestHeader |
header |
protected int |
id |
protected boolean |
isError |
protected com.google.protobuf.Descriptors.MethodDescriptor |
md |
protected com.google.protobuf.Message |
param |
private InetAddress |
remoteAddress |
protected RpcServer.Responder |
responder |
protected BufferChain |
response
Chain of buffers to send as response.
|
private long |
responseBlockSize |
private long |
responseCellSize |
private boolean |
retryImmediatelySupported |
protected com.google.protobuf.BlockingService |
service |
protected long |
size |
protected long |
timestamp |
protected org.apache.htrace.TraceInfo |
tinfo |
private User |
user |
| Constructor and Description |
|---|
RpcServer.Call(int id,
com.google.protobuf.BlockingService service,
com.google.protobuf.Descriptors.MethodDescriptor md,
org.apache.hadoop.hbase.protobuf.generated.RPCProtos.RequestHeader header,
com.google.protobuf.Message param,
CellScanner cellScanner,
RpcServer.Connection connection,
RpcServer.Responder responder,
long size,
org.apache.htrace.TraceInfo tinfo,
InetAddress remoteAddress) |
| Modifier and Type | Method and Description |
|---|---|
long |
disconnectSince()
Check if the caller who made this IPC call has disconnected.
|
(package private) void |
done()
Call is done.
|
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.VersionInfo |
getClientVersionInfo() |
protected org.apache.hadoop.hbase.protobuf.generated.RPCProtos.RequestHeader |
getHeader() |
int |
getPriority() |
InetAddress |
getRemoteAddress() |
org.apache.hadoop.security.UserGroupInformation |
getRemoteUser() |
User |
getRequestUser()
Returns the user credentials associated with the current RPC request or
null if no credentials were provided. |
String |
getRequestUserName() |
long |
getResponseBlockSize() |
long |
getResponseCellSize()
The size of response cells that have been accumulated so far.
|
long |
getSize() |
boolean |
hasPriority() |
void |
incrementResponseBlockSize(long blockSize) |
void |
incrementResponseCellSize(long cellSize)
Add on the given amount to the retained cell size.
|
boolean |
isClientCellBlockSupported()
If the client connected and specified a codec to use, then we will use this codec making
cellblocks to return.
|
boolean |
isRetryImmediatelySupported() |
void |
sendResponseIfReady() |
protected void |
setResponse(Object m,
CellScanner cells,
Throwable t,
String errorMsg) |
protected void |
setSaslTokenResponse(ByteBuffer response) |
(package private) String |
toShortString() |
String |
toString() |
(package private) String |
toTraceString() |
private BufferChain |
wrapWithSasl(BufferChain bc) |
protected int id
protected com.google.protobuf.BlockingService service
protected com.google.protobuf.Descriptors.MethodDescriptor md
protected org.apache.hadoop.hbase.protobuf.generated.RPCProtos.RequestHeader header
protected com.google.protobuf.Message param
protected CellScanner cellScanner
protected RpcServer.Connection connection
protected long timestamp
protected BufferChain response
protected RpcServer.Responder responder
protected long size
protected boolean isError
protected org.apache.htrace.TraceInfo tinfo
private ByteBuffer cellBlock
private User user
private InetAddress remoteAddress
private long responseCellSize
private long responseBlockSize
private boolean retryImmediatelySupported
RpcServer.Call(int id,
com.google.protobuf.BlockingService service,
com.google.protobuf.Descriptors.MethodDescriptor md,
org.apache.hadoop.hbase.protobuf.generated.RPCProtos.RequestHeader header,
com.google.protobuf.Message param,
CellScanner cellScanner,
RpcServer.Connection connection,
RpcServer.Responder responder,
long size,
org.apache.htrace.TraceInfo tinfo,
InetAddress remoteAddress)
void done()
protected org.apache.hadoop.hbase.protobuf.generated.RPCProtos.RequestHeader getHeader()
public boolean hasPriority()
public int getPriority()
String toShortString()
String toTraceString()
protected void setSaslTokenResponse(ByteBuffer response)
protected void setResponse(Object m, CellScanner cells, Throwable t, String errorMsg)
private BufferChain wrapWithSasl(BufferChain bc) throws IOException
IOExceptionpublic boolean isClientCellBlockSupported()
RpcCallContextisClientCellBlockSupported in interface RpcCallContextpublic long disconnectSince()
RpcCallContextdisconnectSince in interface RpcCallContextpublic long getSize()
public long getResponseCellSize()
RpcCallContextgetResponseCellSize in interface RpcCallContextpublic void incrementResponseCellSize(long cellSize)
RpcCallContextincrementResponseCellSize in interface RpcCallContextpublic long getResponseBlockSize()
getResponseBlockSize in interface RpcCallContextpublic void incrementResponseBlockSize(long blockSize)
incrementResponseBlockSize in interface RpcCallContextpublic void sendResponseIfReady()
throws IOException
IOExceptionpublic org.apache.hadoop.security.UserGroupInformation getRemoteUser()
public User getRequestUser()
RpcCallContextnull if no credentials were provided.getRequestUser in interface RpcCallContextpublic String getRequestUserName()
getRequestUserName in interface RpcCallContextpublic InetAddress getRemoteAddress()
getRemoteAddress in interface RpcCallContextpublic org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.VersionInfo getClientVersionInfo()
getClientVersionInfo in interface RpcCallContextpublic boolean isRetryImmediatelySupported()
isRetryImmediatelySupported in interface RpcCallContextCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.