public class RpcMetrics extends Object implements Updater
This class has a number of metrics variables that are publicly accessible; these variables (objects) have methods to update their values; for example:
rpcQueueTime
.inc(time)
Modifier and Type | Field and Description |
---|---|
MetricsIntValue |
callQueueLen |
MetricsIntValue |
numOpenConnections |
MetricsRegistry |
registry |
MetricsTimeVaryingRate |
rpcProcessingTime |
MetricsTimeVaryingRate |
rpcQueueTime
The metrics variables are public:
- they can be set directly by calling their set/inc methods
-they can also be read directly - e.g.
|
Constructor and Description |
---|
RpcMetrics(String hostName,
String port,
Server server) |
Modifier and Type | Method and Description |
---|---|
void |
doUpdates(MetricsContext context)
Push the metrics to the monitoring subsystem on doUpdate() call.
|
void |
shutdown() |
public MetricsRegistry registry
public MetricsTimeVaryingRate rpcQueueTime
public MetricsTimeVaryingRate rpcProcessingTime
public MetricsIntValue numOpenConnections
public MetricsIntValue callQueueLen
public void doUpdates(MetricsContext context)
public void shutdown()
Copyright © 2010 The Apache Software Foundation