@InterfaceAudience.Private public class HBaseRpcControllerImpl extends Object implements HBaseRpcController
RpcControllerFactory on client-side.RpcControllerFactoryHBaseRpcController.CancellationCallback| Constructor and Description | 
|---|
| HBaseRpcControllerImpl() | 
| HBaseRpcControllerImpl(CellScanner cellScanner)Used server-side. | 
| Modifier and Type | Method and Description | 
|---|---|
| CellScanner | cellScanner()Returns One-shot cell scanner (you cannot back it up and restart) | 
| String | errorText() | 
| boolean | failed() | 
| int | getCallTimeout() | 
| IOException | getFailed()Return the failed exception, null if not failed. | 
| int | getPriority()Returns The priority of this request | 
| RegionInfo | getRegionInfo()Returns Target Region's RegionInfo or null if not available or pertinent. | 
| Map<String,byte[]> | getRequestAttributes()Get the map of request attributes | 
| TableName | getTableName()Returns Region's table name or null if not available or pertinent. | 
| boolean | hasCallTimeout() | 
| boolean | hasRegionInfo()Returns True if this Controller is carrying the RPC target Region's RegionInfo. | 
| 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.
 The callback will not be called if the rpc call is finished without any cancellation.
 You can call me at client side also. | 
| 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  HBaseRpcControllerthat we are done. | 
| void | setFailed(IOException e)Set failed with an exception to pass on. | 
| void | setFailed(String reason) | 
| void | setPriority(int priority)Set the priority for this operation. | 
| void | setPriority(TableName tn)Set the priority for this operation. | 
| void | setRequestAttributes(Map<String,byte[]> requestAttributes)Set the map of request attributes | 
| void | setTableName(TableName tableName)Sets Region's table name. | 
| void | startCancel() | 
| String | toString() | 
public HBaseRpcControllerImpl()
public HBaseRpcControllerImpl(CellScanner cellScanner)
RpcControllerFactorypublic boolean hasRegionInfo()
HBaseRpcControllerhasRegionInfo in interface HBaseRpcControllerpublic RegionInfo getRegionInfo()
HBaseRpcControllergetRegionInfo in interface HBaseRpcControllerpublic CellScanner cellScanner()
cellScanner in interface CellScannablepublic void setCellScanner(CellScanner cellScanner)
HBaseRpcControllerHBaseRpcController.setDone(CellScanner).setCellScanner in interface HBaseRpcControllerpublic void setPriority(int priority)
HBaseRpcControllersetPriority in interface HBaseRpcControllerpriority - Priority for this request; should fall roughly in the range
                 HConstants.NORMAL_QOS to HConstants.HIGH_QOSpublic void setPriority(TableName tn)
HBaseRpcControllersetPriority in interface HBaseRpcControllertn - Set priority based off the table we are going against.public int getPriority()
HBaseRpcControllergetPriority in interface HBaseRpcControllerpublic void reset()
reset in interface org.apache.hbase.thirdparty.com.google.protobuf.RpcControllerpublic int getCallTimeout()
getCallTimeout in interface HBaseRpcControllerpublic void setCallTimeout(int callTimeout)
setCallTimeout in interface HBaseRpcControllerpublic boolean hasCallTimeout()
hasCallTimeout in interface HBaseRpcControllerpublic Map<String,byte[]> getRequestAttributes()
HBaseRpcControllergetRequestAttributes in interface HBaseRpcControllerpublic void setRequestAttributes(Map<String,byte[]> requestAttributes)
HBaseRpcControllersetRequestAttributes in interface HBaseRpcControllerpublic String errorText()
errorText in interface org.apache.hbase.thirdparty.com.google.protobuf.RpcControllerpublic boolean failed()
failed in interface org.apache.hbase.thirdparty.com.google.protobuf.RpcControllerpublic boolean isCanceled()
isCanceled in interface org.apache.hbase.thirdparty.com.google.protobuf.RpcControllerpublic void notifyOnCancel(org.apache.hbase.thirdparty.com.google.protobuf.RpcCallback<Object> callback)
HBaseRpcControllerHBaseRpcController.notifyOnCancel in interface HBaseRpcControllernotifyOnCancel in interface org.apache.hbase.thirdparty.com.google.protobuf.RpcControllerpublic void setFailed(String reason)
setFailed in interface org.apache.hbase.thirdparty.com.google.protobuf.RpcControllerpublic void setFailed(IOException e)
HBaseRpcControllersetFailed in interface HBaseRpcControllere - exception to set withpublic IOException getFailed()
HBaseRpcControllergetFailed in interface HBaseRpcControllerpublic void setDone(CellScanner cellScanner)
HBaseRpcControllerHBaseRpcController that we are done.setDone in interface HBaseRpcControllerpublic void startCancel()
startCancel in interface org.apache.hbase.thirdparty.com.google.protobuf.RpcControllerpublic void notifyOnCancel(org.apache.hbase.thirdparty.com.google.protobuf.RpcCallback<Object> callback, HBaseRpcController.CancellationCallback action) throws IOException
HBaseRpcControllernotifyOnCancel in interface HBaseRpcControllerIOExceptionpublic void setTableName(TableName tableName)
HBaseRpcControllersetTableName in interface HBaseRpcControllerpublic TableName getTableName()
HBaseRpcControllergetTableName in interface HBaseRpcControllerCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.