Class RSAnnotationReadingPriorityFunction
java.lang.Object
org.apache.hadoop.hbase.ipc.AnnotationReadingPriorityFunction<RSRpcServices>
org.apache.hadoop.hbase.regionserver.RSAnnotationReadingPriorityFunction
- All Implemented Interfaces:
PriorityFunction
@Private
public class RSAnnotationReadingPriorityFunction
extends AnnotationReadingPriorityFunction<RSRpcServices>
Priority function specifically for the region server.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate final Class<? extends org.apache.hbase.thirdparty.com.google.protobuf.Message>[]private static final org.slf4j.Loggerprivate final Map<String,Map<Class<? extends org.apache.hbase.thirdparty.com.google.protobuf.Message>, Method>> static final StringUsed to control the scan delay, currently sqrt(numNextCall * weight)private final floatFields inherited from class org.apache.hadoop.hbase.ipc.AnnotationReadingPriorityFunction
annotatedQos, rpcServices -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intgetBasePriority(org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.RequestHeader header, org.apache.hbase.thirdparty.com.google.protobuf.Message param) Get the priority for a given request from the header and the param.longgetDeadline(org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.RequestHeader header, org.apache.hbase.thirdparty.com.google.protobuf.Message param) Based on the request content, returns the deadline of the request.protected intnormalizePriority(int priority) Methods inherited from class org.apache.hadoop.hbase.ipc.AnnotationReadingPriorityFunction
getAnnotatedPriority, getPriority
-
Field Details
-
LOG
-
SCAN_VTIME_WEIGHT_CONF_KEY
Used to control the scan delay, currently sqrt(numNextCall * weight)- See Also:
-
INTERNAL_READ_QOS
- See Also:
-
knownArgumentClasses
private final Class<? extends org.apache.hbase.thirdparty.com.google.protobuf.Message>[] knownArgumentClasses -
argumentToClassMap
private final Map<String,Class<? extends org.apache.hbase.thirdparty.com.google.protobuf.Message>> argumentToClassMap -
methodMap
-
scanVirtualTimeWeight
-
-
Constructor Details
-
RSAnnotationReadingPriorityFunction
RSAnnotationReadingPriorityFunction(RSRpcServices rpcServices)
-
-
Method Details
-
normalizePriority
- Specified by:
normalizePriorityin classAnnotationReadingPriorityFunction<RSRpcServices>
-
getBasePriority
protected int getBasePriority(org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.RequestHeader header, org.apache.hbase.thirdparty.com.google.protobuf.Message param) Description copied from class:AnnotationReadingPriorityFunctionGet the priority for a given request from the header and the param. This doesn't consider which user is sending the request at all. This doesn't consider annotations- Specified by:
getBasePriorityin classAnnotationReadingPriorityFunction<RSRpcServices>
-
getDeadline
public long getDeadline(org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.RequestHeader header, org.apache.hbase.thirdparty.com.google.protobuf.Message param) Based on the request content, returns the deadline of the request.- Returns:
- Deadline of this request. 0 now, otherwise msec of 'delay'
-