|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.ipc.metrics.RpcMetrics
public class RpcMetrics
This class is for maintaining the various RPC statistics and publishing them through the metrics interfaces. This also registers the JMX MBean for RPC.
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)
Field Summary | |
---|---|
MetricsTimeVaryingInt |
authenticationFailures
metrics - number of failed authentications |
MetricsTimeVaryingInt |
authenticationSuccesses
metrics - number of successful authentications |
MetricsTimeVaryingInt |
authorizationFailures
metrics - number of failed authorizations |
MetricsTimeVaryingInt |
authorizationSuccesses
metrics - number of successful authorizations |
MetricsIntValue |
callQueueLen
metrics - length of the queue |
MetricsIntValue |
numOpenConnections
metrics - number of open connections |
MetricsTimeVaryingLong |
receivedBytes
metrics - number of bytes received |
MetricsTimeVaryingRate |
rpcProcessingTime
metrics - rpc processing time |
MetricsTimeVaryingRate |
rpcQueueTime
metrics - rpc queue time |
MetricsTimeVaryingLong |
sentBytes
metrics - number of bytes sent |
Constructor Summary | |
---|---|
RpcMetrics(String hostName,
String port,
Server server)
|
Method Summary | |
---|---|
void |
doUpdates(MetricsContext context)
Push the metrics to the monitoring subsystem on doUpdate() call. |
void |
shutdown()
shutdown the metrics |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final MetricsTimeVaryingLong receivedBytes
public final MetricsTimeVaryingLong sentBytes
public final MetricsTimeVaryingRate rpcQueueTime
public final MetricsTimeVaryingRate rpcProcessingTime
public final MetricsIntValue numOpenConnections
public final MetricsIntValue callQueueLen
public final MetricsTimeVaryingInt authenticationFailures
public final MetricsTimeVaryingInt authenticationSuccesses
public final MetricsTimeVaryingInt authorizationFailures
public final MetricsTimeVaryingInt authorizationSuccesses
Constructor Detail |
---|
public RpcMetrics(String hostName, String port, Server server)
Method Detail |
---|
public void doUpdates(MetricsContext context)
doUpdates
in interface Updater
public void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |