org.apache.hadoop.hbase.ipc
Class DelegatingPayloadCarryingRpcController

java.lang.Object
  extended by org.apache.hadoop.hbase.ipc.PayloadCarryingRpcController
      extended by 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.


Constructor Summary
DelegatingPayloadCarryingRpcController(PayloadCarryingRpcController delegate)
           
 
Method Summary
 CellScanner cellScanner()
           
 int getPriority()
           
 void setCellScanner(CellScanner cellScanner)
           
 void setPriority(int priority)
           
 void setPriority(TableName tn)
           
 
Methods inherited from class org.apache.hadoop.hbase.ipc.PayloadCarryingRpcController
errorText, failed, isCanceled, notifyOnCancel, reset, setFailed, startCancel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingPayloadCarryingRpcController

public DelegatingPayloadCarryingRpcController(PayloadCarryingRpcController delegate)
Method Detail

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.