Package org.apache.hadoop.ipc.metrics
Class DecayRpcSchedulerDetailedMetrics
java.lang.Object
org.apache.hadoop.ipc.metrics.DecayRpcSchedulerDetailedMetrics
@Private
@Evolving
@Metrics(about="Per queue(priority) metrics",
context="decayrpcschedulerdetailed")
public class DecayRpcSchedulerDetailedMetrics
extends Object
This class is for maintaining queue (priority) level related
statistics when FairCallQueue is used and publishing them
through the metrics interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddProcessingTime(int priority, long processingTime) Instrument a Call processing time based on its priority.voidaddQueueTime(int priority, long queueTime) Instrument a Call queue time based on its priority.getName()getProcessingName(int priority) getQueueName(int priority) voidinit(int numLevels) Initialize the metrics for JMX with priority levels.voidshutdown()Shutdown the instrumentation process.
-
Method Details
-
create
-
init
public void init(int numLevels) Initialize the metrics for JMX with priority levels.- Parameters:
numLevels- input numLevels.
-
addQueueTime
public void addQueueTime(int priority, long queueTime) Instrument a Call queue time based on its priority.- Parameters:
priority- of the RPC callqueueTime- of the RPC call in the queue of the priority
-
addProcessingTime
public void addProcessingTime(int priority, long processingTime) Instrument a Call processing time based on its priority.- Parameters:
priority- of the RPC callprocessingTime- of the RPC call in the queue of the priority
-
shutdown
public void shutdown()Shutdown the instrumentation process. -
getQueueName
- Parameters:
priority- input priority.- Returns:
- Returns the rate name inside the metric.
-
getProcessingName
- Parameters:
priority- input priority.- Returns:
- Returns the rate name inside the metric.
-
getName
-