|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.ipc.RpcScheduler
@InterfaceAudience.LimitedPrivate(value={"Coprocesssor","Phoenix"})
@InterfaceStability.Evolving
public abstract class RpcSchedulerAn interface for RPC request scheduling algorithm.
| Constructor Summary | |
|---|---|
RpcScheduler()
|
|
| Method Summary | |
|---|---|
abstract void |
dispatch(CallRunner task)
Dispatches an RPC request asynchronously. |
abstract int |
getActiveRpcHandlerCount()
Retrieves the number of active handler. |
abstract int |
getGeneralQueueLength()
Retrieves length of the general queue for metrics. |
abstract int |
getPriorityQueueLength()
Retrieves length of the priority queue for metrics. |
abstract int |
getReplicationQueueLength()
Retrieves length of the replication queue for metrics. |
abstract void |
init(org.apache.hadoop.hbase.ipc.RpcScheduler.Context context)
Does some quick initialization. |
abstract void |
start()
Prepares for request serving. |
abstract void |
stop()
Stops serving new requests. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RpcScheduler()
| Method Detail |
|---|
public abstract void init(org.apache.hadoop.hbase.ipc.RpcScheduler.Context context)
start(). This method is called before start.
context - provides methods to retrieve runtime information frompublic abstract void start()
public abstract void stop()
public abstract void dispatch(CallRunner task)
throws IOException,
InterruptedException
task - the request to be dispatched
IOException
InterruptedExceptionpublic abstract int getGeneralQueueLength()
public abstract int getPriorityQueueLength()
public abstract int getReplicationQueueLength()
public abstract int getActiveRpcHandlerCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||