|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.ipc.RpcScheduler
org.apache.hadoop.hbase.ipc.FifoRpcScheduler
public class FifoRpcScheduler
A very simple RpcScheduler} that serves incoming requests in order.
This can be used for HMaster, where no prioritization is needed.
| Constructor Summary | |
|---|---|
FifoRpcScheduler(org.apache.hadoop.conf.Configuration conf,
int handlerCount)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FifoRpcScheduler(org.apache.hadoop.conf.Configuration conf,
int handlerCount)
| Method Detail |
|---|
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()
RpcScheduler
start in class RpcSchedulerpublic void stop()
RpcScheduler
stop in class RpcScheduler
public void dispatch(CallRunner task)
throws IOException,
InterruptedException
RpcScheduler
dispatch in class RpcSchedulertask - the request to be dispatched
IOException
InterruptedExceptionpublic int getGeneralQueueLength()
RpcScheduler
getGeneralQueueLength in class RpcSchedulerpublic int getPriorityQueueLength()
RpcScheduler
getPriorityQueueLength in class RpcSchedulerpublic int getReplicationQueueLength()
RpcScheduler
getReplicationQueueLength in class RpcSchedulerpublic int getActiveRpcHandlerCount()
RpcScheduler
getActiveRpcHandlerCount in class RpcScheduler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||