Class NameserviceRPCMetrics
java.lang.Object
org.apache.hadoop.hdfs.server.federation.metrics.NameserviceRPCMetrics
- All Implemented Interfaces:
NameserviceRPCMBean
@Metrics(name="NameserviceRPCActivity",
about="Nameservice RPC Activity",
context="dfs")
public class NameserviceRPCMetrics
extends Object
implements NameserviceRPCMBean
Implementation of the Nameservice RPC metrics collector.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNameserviceRPCMetrics(org.apache.hadoop.conf.Configuration conf, String nsId) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProxyTime(long time) Add the time to proxy an operation from the moment the Router sends it to the Namenode until it replied.static NameserviceRPCMetricsgetNsId()doublelonglonglonglonglonglongvoidvoidvoidvoidvoid
-
Field Details
-
NAMESERVICE_RPC_METRICS_PREFIX
- See Also:
-
-
Constructor Details
-
NameserviceRPCMetrics
-
-
Method Details
-
create
public static NameserviceRPCMetrics create(org.apache.hadoop.conf.Configuration conf, String nameService) -
incrProxyOpFailureStandby
public void incrProxyOpFailureStandby() -
getProxyOpFailureStandby
public long getProxyOpFailureStandby()- Specified by:
getProxyOpFailureStandbyin interfaceNameserviceRPCMBean
-
incrProxyOpFailureCommunicate
public void incrProxyOpFailureCommunicate() -
getProxyOpFailureCommunicate
public long getProxyOpFailureCommunicate()- Specified by:
getProxyOpFailureCommunicatein interfaceNameserviceRPCMBean
-
incrProxyOpNoNamenodes
public void incrProxyOpNoNamenodes() -
getProxyOpNoNamenodes
public long getProxyOpNoNamenodes()- Specified by:
getProxyOpNoNamenodesin interfaceNameserviceRPCMBean
-
incrProxyOpPermitRejected
public void incrProxyOpPermitRejected() -
getProxyOpPermitRejected
public long getProxyOpPermitRejected()- Specified by:
getProxyOpPermitRejectedin interfaceNameserviceRPCMBean
-
incrProxyOpPermitAccepted
public void incrProxyOpPermitAccepted() -
getProxyOpPermitAccepted
public long getProxyOpPermitAccepted()- Specified by:
getProxyOpPermitAcceptedin interfaceNameserviceRPCMBean
-
addProxyTime
public void addProxyTime(long time) Add the time to proxy an operation from the moment the Router sends it to the Namenode until it replied.- Parameters:
time- Proxy time of an operation in nanoseconds.
-
getProxyAvg
public double getProxyAvg()- Specified by:
getProxyAvgin interfaceNameserviceRPCMBean
-
getProxyOps
public long getProxyOps()- Specified by:
getProxyOpsin interfaceNameserviceRPCMBean
-
getNsId
-