@InterfaceAudience.LimitedPrivate(value={"Coprocesssor","Phoenix"}) @InterfaceStability.Evolving public abstract class RpcScheduler extends Object
Constructor and Description |
---|
RpcScheduler() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 dispatchedIOException
InterruptedException
public abstract int getGeneralQueueLength()
public abstract int getPriorityQueueLength()
public abstract int getReplicationQueueLength()
public abstract int getActiveRpcHandlerCount()