@InterfaceAudience.Private @Metrics(about="Per method RPC metrics", context="rpcdetailed") public class RpcDetailedMetrics extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addProcessingTime(String name,
int processingTime)
Add an RPC processing time sample
|
static RpcDetailedMetrics |
create(int port) |
void |
init(Class<?> protocol)
Initialize the metrics for JMX with protocol methods
|
String |
name() |
void |
shutdown()
Shutdown the instrumentation for the process
|
public String name()
public static RpcDetailedMetrics create(int port)
public void init(Class<?> protocol)
protocol - the protocol classpublic void addProcessingTime(String name, int processingTime)
name - of the RPC callprocessingTime - the processing timepublic void shutdown()
Copyright © 2013 Apache Software Foundation. All rights reserved.