public class AsyncPayloadCarryingRpcController
extends java.lang.Object
implements com.google.protobuf.RpcController, org.apache.hadoop.hbase.CellScannable
| Constructor and Description |
|---|
AsyncPayloadCarryingRpcController()
Constructor
|
AsyncPayloadCarryingRpcController(org.apache.hadoop.hbase.CellScanner cellScanner)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.hbase.CellScanner |
cellScanner() |
java.lang.String |
errorText() |
boolean |
failed() |
int |
getPriority() |
boolean |
isCanceled() |
void |
notifyOnCancel(com.google.protobuf.RpcCallback<java.lang.Object> callback) |
void |
notifyOnError(com.google.protobuf.RpcCallback<java.io.IOException> callback)
Callback for errors
|
void |
reset() |
void |
setCellScanner(org.apache.hadoop.hbase.CellScanner cellScanner)
Set the cell scanner
|
void |
setFailed(java.io.IOException e)
Set failed with an exception
|
void |
setFailed(java.lang.String reason) |
void |
setPriority(int priority) |
void |
setPriority(org.apache.hadoop.hbase.TableName tn) |
void |
startCancel() |
public AsyncPayloadCarryingRpcController()
public AsyncPayloadCarryingRpcController(org.apache.hadoop.hbase.CellScanner cellScanner)
cellScanner - to init withpublic void reset()
reset in interface com.google.protobuf.RpcControllerpublic boolean failed()
failed in interface com.google.protobuf.RpcControllerpublic java.lang.String errorText()
errorText in interface com.google.protobuf.RpcControllerpublic void startCancel()
startCancel in interface com.google.protobuf.RpcControllerpublic void setFailed(java.lang.String reason)
setFailed in interface com.google.protobuf.RpcControllerpublic boolean isCanceled()
isCanceled in interface com.google.protobuf.RpcControllerpublic void notifyOnCancel(com.google.protobuf.RpcCallback<java.lang.Object> callback)
notifyOnCancel in interface com.google.protobuf.RpcControllerpublic void notifyOnError(com.google.protobuf.RpcCallback<java.io.IOException> callback)
callback - to run on errorpublic org.apache.hadoop.hbase.CellScanner cellScanner()
cellScanner in interface org.apache.hadoop.hbase.CellScannablepublic void setCellScanner(org.apache.hadoop.hbase.CellScanner cellScanner)
cellScanner - cell scannerpublic void setPriority(int priority)
priority - Priority for this request; should fall roughly in the range
HConstants.NORMAL_QOS to HConstants.HIGH_QOSpublic void setPriority(org.apache.hadoop.hbase.TableName tn)
tn - Set priority based off the table we are going against.public int getPriority()
public void setFailed(java.io.IOException e)
e - exception to set with