@InterfaceAudience.LimitedPrivate(value={"Coprocesssor","Phoenix"}) @InterfaceStability.Evolving public class RpcServer.Call extends Object implements RpcCallContext
| Modifier and Type | Field and Description | 
|---|---|
| protected CellScanner | cellScanner | 
| protected RpcServer.Connection | connection | 
| protected long | deadline | 
| 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 | 
| protected RpcServer.Responder | responder | 
| protected org.apache.hadoop.hbase.ipc.BufferChain | responseChain of buffers to send as response. | 
| protected com.google.protobuf.BlockingService | service | 
| protected long | size | 
| protected long | startTime | 
| protected int | timeout | 
| protected long | timestamp | 
| protected org.apache.htrace.TraceInfo | tinfo | 
| Modifier and Type | Method and Description | 
|---|---|
| long | disconnectSince()Check if the caller who made this IPC call has disconnected. | 
| org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.VersionInfo | getClientVersionInfo() | 
| long | getDeadline()Return the deadline of this call. | 
| 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
  nullif no credentials were provided. | 
| String | getRequestUserName() | 
| long | getResponseBlockSize() | 
| long | getResponseCellSize()The size of response cells that have been accumulated so far. | 
| long | getResponseExceptionSize() | 
| long | getSize() | 
| boolean | hasPriority() | 
| void | incrementResponseBlockSize(long blockSize) | 
| void | incrementResponseCellSize(long cellSize)Add on the given amount to the retained cell size. | 
| void | incrementResponseExceptionSize(long exSize) | 
| 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) | 
| String | toString() | 
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 int timeout
protected long startTime
protected long deadline
protected org.apache.hadoop.hbase.ipc.BufferChain response
protected RpcServer.Responder responder
protected long size
protected boolean isError
protected org.apache.htrace.TraceInfo tinfo
protected org.apache.hadoop.hbase.protobuf.generated.RPCProtos.RequestHeader getHeader()
public boolean hasPriority()
public int getPriority()
protected void setSaslTokenResponse(ByteBuffer response)
protected void setResponse(Object m, CellScanner cells, Throwable t, String errorMsg)
public boolean isClientCellBlockSupported()
RpcCallContextisClientCellBlockSupported in interface RpcCallContextpublic long disconnectSince()
RpcCallContextdisconnectSince in interface RpcCallContextpublic long getResponseExceptionSize()
getResponseExceptionSize in interface RpcCallContextpublic void incrementResponseExceptionSize(long exSize)
incrementResponseExceptionSize 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 long getDeadline()
RpcCallContextgetDeadline 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.