@InterfaceAudience.Private public class DelegatingHBaseRpcController extends Object implements HBaseRpcController
RpcControllerFactory to help override
standard behavior of a HBaseRpcController. Used testing.HBaseRpcController.CancellationCallback| 构造器和说明 |
|---|
DelegatingHBaseRpcController(HBaseRpcController delegate) |
| 限定符和类型 | 方法和说明 |
|---|---|
CellScanner |
cellScanner() |
String |
errorText() |
boolean |
failed() |
int |
getCallTimeout() |
IOException |
getFailed()
Return the failed exception, null if not failed.
|
int |
getPriority() |
boolean |
hasCallTimeout() |
boolean |
isCanceled() |
void |
notifyOnCancel(org.apache.hbase.thirdparty.com.google.protobuf.RpcCallback<Object> callback)
A little different from the basic RpcController:
You can register multiple callbacks to an
HBaseRpcController. |
void |
notifyOnCancel(org.apache.hbase.thirdparty.com.google.protobuf.RpcCallback<Object> callback,
HBaseRpcController.CancellationCallback action)
If not cancelled, add the callback to cancellation callback list.
|
void |
reset() |
void |
setCallTimeout(int callTimeout) |
void |
setCellScanner(CellScanner cellScanner)
Only used to send cells to rpc server, the returned cells should be set by
HBaseRpcController.setDone(CellScanner). |
void |
setDone(CellScanner cellScanner)
IMPORTANT: always call this method if the call finished without any exception to tell
the
HBaseRpcController that we are done. |
void |
setFailed(IOException e)
Set failed with an exception to pass on.
|
void |
setFailed(String reason) |
void |
setPriority(int priority) |
void |
setPriority(TableName tn) |
void |
startCancel() |
public DelegatingHBaseRpcController(HBaseRpcController delegate)
public void reset()
reset 在接口中 org.apache.hbase.thirdparty.com.google.protobuf.RpcControllerpublic boolean failed()
failed 在接口中 org.apache.hbase.thirdparty.com.google.protobuf.RpcControllerpublic String errorText()
errorText 在接口中 org.apache.hbase.thirdparty.com.google.protobuf.RpcControllerpublic void startCancel()
startCancel 在接口中 org.apache.hbase.thirdparty.com.google.protobuf.RpcControllerpublic void setFailed(String reason)
setFailed 在接口中 org.apache.hbase.thirdparty.com.google.protobuf.RpcControllerpublic boolean isCanceled()
isCanceled 在接口中 org.apache.hbase.thirdparty.com.google.protobuf.RpcControllerpublic void notifyOnCancel(org.apache.hbase.thirdparty.com.google.protobuf.RpcCallback<Object> callback)
HBaseRpcControllerHBaseRpcController.notifyOnCancel 在接口中 HBaseRpcControllernotifyOnCancel 在接口中 org.apache.hbase.thirdparty.com.google.protobuf.RpcControllerpublic CellScanner cellScanner()
cellScanner 在接口中 CellScannablepublic void setCellScanner(CellScanner cellScanner)
HBaseRpcControllerHBaseRpcController.setDone(CellScanner).setCellScanner 在接口中 HBaseRpcControllerpublic void setPriority(int priority)
setPriority 在接口中 HBaseRpcControllerpriority - Priority for this request; should fall roughly in the range
HConstants.NORMAL_QOS to HConstants.HIGH_QOSpublic void setPriority(TableName tn)
setPriority 在接口中 HBaseRpcControllertn - Set priority based off the table we are going against.public int getPriority()
getPriority 在接口中 HBaseRpcControllerpublic int getCallTimeout()
getCallTimeout 在接口中 HBaseRpcControllerpublic void setCallTimeout(int callTimeout)
setCallTimeout 在接口中 HBaseRpcControllerpublic boolean hasCallTimeout()
hasCallTimeout 在接口中 HBaseRpcControllerpublic void setFailed(IOException e)
HBaseRpcControllersetFailed 在接口中 HBaseRpcControllere - exception to set withpublic IOException getFailed()
HBaseRpcControllergetFailed 在接口中 HBaseRpcControllerpublic void setDone(CellScanner cellScanner)
HBaseRpcControllerHBaseRpcController that we are done.setDone 在接口中 HBaseRpcControllerpublic void notifyOnCancel(org.apache.hbase.thirdparty.com.google.protobuf.RpcCallback<Object> callback, HBaseRpcController.CancellationCallback action) throws IOException
HBaseRpcControllernotifyOnCancel 在接口中 HBaseRpcControllerIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.