Class RSAnnotationReadingPriorityFunction
java.lang.Object
org.apache.hadoop.hbase.ipc.AnnotationReadingPriorityFunction<RSRpcServices>
org.apache.hadoop.hbase.regionserver.RSAnnotationReadingPriorityFunction
- All Implemented Interfaces:
PriorityFunction
@Private
class RSAnnotationReadingPriorityFunction
extends AnnotationReadingPriorityFunction<RSRpcServices>
Priority function specifically for the region server.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Class<? extends org.apache.hbase.thirdparty.com.google.protobuf.Message>[]
private static final org.slf4j.Logger
private final Map<String,
Map<Class<? extends org.apache.hbase.thirdparty.com.google.protobuf.Message>, Method>> static final String
Used to control the scan delay, currently sqrt(numNextCall * weight)private final float
Fields inherited from class org.apache.hadoop.hbase.ipc.AnnotationReadingPriorityFunction
annotatedQos, rpcServices
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
getBasePriority
(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.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.protected int
normalizePriority
(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:
-
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:
normalizePriority
in 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:AnnotationReadingPriorityFunction
Get 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:
getBasePriority
in 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'
-