|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.ipc.HBaseServer.Call
protected class HBaseServer.Call
A call queued for handling.
| Field Summary | |
|---|---|
protected CellScanner |
cellScanner
|
protected HBaseServer.Connection |
connection
|
protected boolean |
delayResponse
|
protected boolean |
delayReturnValue
|
protected int |
id
|
protected boolean |
isError
|
protected Method |
method
|
protected com.google.protobuf.Message |
param
|
protected HBaseServer.Responder |
responder
|
protected ByteBuffer |
response
|
protected long |
size
|
protected long |
timestamp
|
protected org.cloudera.htrace.TraceInfo |
tinfo
|
| Constructor Summary | |
|---|---|
HBaseServer.Call(int id,
Method method,
com.google.protobuf.Message param,
CellScanner cellScanner,
HBaseServer.Connection connection,
HBaseServer.Responder responder,
long size,
org.cloudera.htrace.TraceInfo tinfo)
|
|
| Method Summary | |
|---|---|
void |
endDelay()
Signal the end of a delayed RPC, without specifying the return value. |
void |
endDelay(Object result)
Signal that the RPC server is now allowed to send the response. |
void |
endDelayThrowing(Throwable t)
End the call, throwing and exception to the caller. |
long |
getSize()
|
boolean |
isDelayed()
|
boolean |
isReturnValueDelayed()
|
void |
sendResponseIfReady()
If we have a response, and delay is not set, then respond immediately. |
protected void |
setResponse(Object m,
CellScanner cells,
Throwable t,
String errorMsg)
|
protected void |
setSaslTokenResponse(ByteBuffer response)
|
void |
startDelay(boolean delayReturnValue)
Signal that the call response should be delayed, thus freeing the RPC server to handle different requests. |
void |
throwExceptionIfCallerDisconnected()
Throw an exception if the caller who made this IPC call has disconnected. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int id
protected Method method
protected com.google.protobuf.Message param
protected CellScanner cellScanner
protected HBaseServer.Connection connection
protected long timestamp
protected ByteBuffer response
protected boolean delayResponse
protected HBaseServer.Responder responder
protected boolean delayReturnValue
protected long size
protected boolean isError
protected org.cloudera.htrace.TraceInfo tinfo
| Constructor Detail |
|---|
public HBaseServer.Call(int id,
Method method,
com.google.protobuf.Message param,
CellScanner cellScanner,
HBaseServer.Connection connection,
HBaseServer.Responder responder,
long size,
org.cloudera.htrace.TraceInfo tinfo)
| Method Detail |
|---|
public String toString()
toString in class Objectprotected void setSaslTokenResponse(ByteBuffer response)
protected void setResponse(Object m,
CellScanner cells,
Throwable t,
String errorMsg)
public void endDelay(Object result)
throws IOException
Delayable
endDelay in interface Delayableresult - The value to return to the caller. If the corresponding
delay response specified that the return value should
not be delayed, this parameter must be null.
IOException
public void endDelay()
throws IOException
Delayable
endDelay in interface DelayableIOExceptionpublic void startDelay(boolean delayReturnValue)
Delayable
startDelay in interface DelayabledelayReturnValue - Controls whether the return value of the call
should be set when ending the delay or right away. There are cases when
the return value can be set right away, even if the call is delayed.
public void endDelayThrowing(Throwable t)
throws IOException
Delayable
endDelayThrowing in interface Delayablet - Object to throw to the client.
IOExceptionpublic boolean isDelayed()
isDelayed in interface Delayablepublic boolean isReturnValueDelayed()
isReturnValueDelayed in interface Delayable
public void throwExceptionIfCallerDisconnected()
throws CallerDisconnectedException
RpcCallContext
throwExceptionIfCallerDisconnected in interface RpcCallContextCallerDisconnectedExceptionpublic long getSize()
public void sendResponseIfReady()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||