@InterfaceAudience.LimitedPrivate(value={"Coprocesssor","Phoenix"}) @InterfaceStability.Evolving public class RpcServer.Call extends Object implements RpcCallContext
| 限定符和类型 | 字段和说明 |
|---|---|
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 |
response
Chain 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 |
| 限定符和类型 | 方法和说明 |
|---|---|
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
null if 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 在接口中 RpcCallContextpublic long disconnectSince()
RpcCallContextdisconnectSince 在接口中 RpcCallContextpublic long getResponseExceptionSize()
getResponseExceptionSize 在接口中 RpcCallContextpublic void incrementResponseExceptionSize(long exSize)
incrementResponseExceptionSize 在接口中 RpcCallContextpublic long getSize()
public long getResponseCellSize()
RpcCallContextgetResponseCellSize 在接口中 RpcCallContextpublic void incrementResponseCellSize(long cellSize)
RpcCallContextincrementResponseCellSize 在接口中 RpcCallContextpublic long getResponseBlockSize()
getResponseBlockSize 在接口中 RpcCallContextpublic void incrementResponseBlockSize(long blockSize)
incrementResponseBlockSize 在接口中 RpcCallContextpublic long getDeadline()
RpcCallContextgetDeadline 在接口中 RpcCallContextpublic void sendResponseIfReady()
throws IOException
IOExceptionpublic org.apache.hadoop.security.UserGroupInformation getRemoteUser()
public User getRequestUser()
RpcCallContextnull if no credentials were provided.getRequestUser 在接口中 RpcCallContextpublic String getRequestUserName()
getRequestUserName 在接口中 RpcCallContextpublic InetAddress getRemoteAddress()
getRemoteAddress 在接口中 RpcCallContextpublic org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.VersionInfo getClientVersionInfo()
getClientVersionInfo 在接口中 RpcCallContextpublic boolean isRetryImmediatelySupported()
isRetryImmediatelySupported 在接口中 RpcCallContextCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.