Package org.apache.hadoop.ipc.metrics
Class RpcDetailedMetrics
java.lang.Object
org.apache.hadoop.ipc.metrics.RpcDetailedMetrics
@Private
@Metrics(about="Per method RPC metrics",
context="rpcdetailed")
public class RpcDetailedMetrics
extends Object
This class is for maintaining RPC method related statistics
and publishing them through the metrics interfaces.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddDeferredProcessingTime(String name, long processingTime) voidaddOverallProcessingTime(String rpcCallName, long overallProcessingTime) Add an overall RPC processing time sample.voidaddProcessingTime(String rpcCallName, long processingTime) Add an RPC processing time samplestatic RpcDetailedMetricscreate(int port) voidInitialize the metrics for JMX with protocol methodsname()voidshutdown()Shutdown the instrumentation for the process
-
Method Details
-
getOverallRpcProcessingRates
-
name
-
create
-
init
Initialize the metrics for JMX with protocol methods- Parameters:
protocol- the protocol class
-
addProcessingTime
Add an RPC processing time sample- Parameters:
rpcCallName- of the RPC callprocessingTime- the processing time
-
addDeferredProcessingTime
-
addOverallProcessingTime
Add an overall RPC processing time sample.- Parameters:
rpcCallName- of the RPC calloverallProcessingTime- the overall RPC processing time
-
shutdown
public void shutdown()Shutdown the instrumentation for the process
-