public class FifoRpcScheduler extends RpcScheduler
RpcScheduler} that serves incoming requests in order.
This can be used for HMaster, where no prioritization is needed.| Constructor and Description |
|---|
FifoRpcScheduler(org.apache.hadoop.conf.Configuration conf,
int handlerCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch(CallRunner task)
Dispatches an RPC request asynchronously.
|
int |
getActiveRpcHandlerCount()
Retrieves the number of active handler.
|
int |
getGeneralQueueLength()
Retrieves length of the general queue for metrics.
|
int |
getPriorityQueueLength()
Retrieves length of the priority queue for metrics.
|
int |
getReplicationQueueLength()
Retrieves length of the replication queue for metrics.
|
void |
init(org.apache.hadoop.hbase.ipc.RpcScheduler.Context context)
Does some quick initialization.
|
void |
start()
Prepares for request serving.
|
void |
stop()
Stops serving new requests.
|
public FifoRpcScheduler(org.apache.hadoop.conf.Configuration conf,
int handlerCount)
public void init(org.apache.hadoop.hbase.ipc.RpcScheduler.Context context)
RpcSchedulerRpcScheduler.start(). This method is called before start.init in class RpcSchedulercontext - provides methods to retrieve runtime information frompublic void start()
RpcSchedulerstart in class RpcSchedulerpublic void stop()
RpcSchedulerstop in class RpcSchedulerpublic void dispatch(CallRunner task) throws IOException, InterruptedException
RpcSchedulerdispatch in class RpcSchedulertask - the request to be dispatchedIOExceptionInterruptedExceptionpublic int getGeneralQueueLength()
RpcSchedulergetGeneralQueueLength in class RpcSchedulerpublic int getPriorityQueueLength()
RpcSchedulergetPriorityQueueLength in class RpcSchedulerpublic int getReplicationQueueLength()
RpcSchedulergetReplicationQueueLength in class RpcSchedulerpublic int getActiveRpcHandlerCount()
RpcSchedulergetActiveRpcHandlerCount in class RpcSchedulerCopyright © 2014 The Apache Software Foundation. All rights reserved.