|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RpcMgtMBean
This is the JMX management interface for the RPC layer. Many of the statistics are sampled and averaged on an interval which can be specified in the metrics config file.
For the statistics that are sampled and averaged, one must specify a metrics context that does periodic update calls. Most do. The default Null metrics context however does NOT. So if you aren't using any other metrics context then you can turn on the viewing and averaging of sampled metrics by specifying the following two lines in the hadoop-meterics.properties file:
rpc.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread rpc.period=10
Note that the metrics are collected regardless of the context used. The context with the update thread is used to average the data periodically
Method Summary | |
---|---|
int |
getCallQueueLen()
The number of rpc calls in the queue. |
int |
getNumOpenConnections()
The number of open RPC conections |
long |
getRpcOpsAvgProcessingTime()
Average time for RPC Operations in last interval |
long |
getRpcOpsAvgProcessingTimeMax()
The Maximum RPC Operation Processing Time since reset was called |
long |
getRpcOpsAvgProcessingTimeMin()
The Minimum RPC Operation Processing Time since reset was called |
long |
getRpcOpsAvgQueueTime()
The Average RPC Operation Queued Time in the last interval |
long |
getRpcOpsAvgQueueTimeMax()
The Maximum RPC Operation Queued Time since reset was called |
long |
getRpcOpsAvgQueueTimeMin()
The Minimum RPC Operation Queued Time since reset was called |
int |
getRpcOpsNumber()
Number of RPC Operations in the last interval |
void |
resetAllMinMax()
Reset all min max times |
Method Detail |
---|
int getRpcOpsNumber()
long getRpcOpsAvgProcessingTime()
long getRpcOpsAvgProcessingTimeMin()
long getRpcOpsAvgProcessingTimeMax()
long getRpcOpsAvgQueueTime()
long getRpcOpsAvgQueueTimeMin()
long getRpcOpsAvgQueueTimeMax()
void resetAllMinMax()
int getNumOpenConnections()
int getCallQueueLen()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |