Package org.apache.hadoop.ipc
Class DefaultRpcScheduler
java.lang.Object
org.apache.hadoop.ipc.DefaultRpcScheduler
- All Implemented Interfaces:
RpcScheduler
No op default RPC scheduler.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultRpcScheduler(int priorityLevels, String namespace, Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResponseTime(String callName, Schedulable schedulable, ProcessingDetails details) Store a processing time value for an RPC call into this scheduler.intbooleanshouldBackOff(Schedulable obj) voidstop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.ipc.RpcScheduler
addResponseTime
-
Constructor Details
-
DefaultRpcScheduler
-
-
Method Details
-
getPriorityLevel
- Specified by:
getPriorityLevelin interfaceRpcScheduler- Parameters:
obj- input obj.- Returns:
- Returns priority level greater than zero as a hint for scheduling.
-
shouldBackOff
- Specified by:
shouldBackOffin interfaceRpcScheduler
-
addResponseTime
Description copied from interface:RpcSchedulerStore a processing time value for an RPC call into this scheduler.- Specified by:
addResponseTimein interfaceRpcScheduler- Parameters:
callName- The name of the call.schedulable- The schedulable representing the incoming call.details- The details of processing time.
-
stop
public void stop()- Specified by:
stopin interfaceRpcScheduler
-