org.apache.hadoop.hbase.ipc
Class DelegatingPayloadCarryingRpcController
java.lang.Object
org.apache.hadoop.hbase.ipc.PayloadCarryingRpcController
org.apache.hadoop.hbase.ipc.DelegatingPayloadCarryingRpcController
- All Implemented Interfaces:
- com.google.protobuf.RpcController, CellScannable
public class DelegatingPayloadCarryingRpcController
- extends PayloadCarryingRpcController
Simple delegating controller for use with the RpcControllerFactory
to help override
standard behavior of a PayloadCarryingRpcController
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegatingPayloadCarryingRpcController
public DelegatingPayloadCarryingRpcController(PayloadCarryingRpcController delegate)
cellScanner
public CellScanner cellScanner()
- Specified by:
cellScanner
in interface CellScannable
- Overrides:
cellScanner
in class PayloadCarryingRpcController
- Returns:
- One-shot cell scanner (you cannot back it up and restart)
setCellScanner
public void setCellScanner(CellScanner cellScanner)
- Overrides:
setCellScanner
in class PayloadCarryingRpcController
setPriority
public void setPriority(int priority)
- Overrides:
setPriority
in class PayloadCarryingRpcController
- Parameters:
priority
- Priority for this request; should fall roughly in the range
HConstants.NORMAL_QOS
to HConstants.HIGH_QOS
setPriority
public void setPriority(TableName tn)
- Overrides:
setPriority
in class PayloadCarryingRpcController
- Parameters:
tn
- Set priority based off the table we are going against.
getPriority
public int getPriority()
- Overrides:
getPriority
in class PayloadCarryingRpcController
- Returns:
- The priority of this request
Copyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.