NameserviceRPCMBean@Metrics(name="NameserviceRPCActivity",
about="Nameservice RPC Activity",
context="dfs")
public class NameserviceRPCMetrics
extends java.lang.Object
implements NameserviceRPCMBean
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
NAMESERVICE_RPC_METRICS_PREFIX |
| Constructor | Description |
|---|---|
NameserviceRPCMetrics(org.apache.hadoop.conf.Configuration conf,
java.lang.String nsId) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addProxyTime(long time) |
Add the time to proxy an operation from the moment the Router sends it to
the Namenode until it replied.
|
static NameserviceRPCMetrics |
create(org.apache.hadoop.conf.Configuration conf,
java.lang.String nameService) |
|
java.lang.String |
getNsId() |
|
double |
getProxyAvg() |
|
long |
getProxyOpFailureCommunicate() |
|
long |
getProxyOpFailureStandby() |
|
long |
getProxyOpNoNamenodes() |
|
long |
getProxyOpPermitAccepted() |
|
long |
getProxyOpPermitRejected() |
|
long |
getProxyOps() |
|
void |
incrProxyOpFailureCommunicate() |
|
void |
incrProxyOpFailureStandby() |
|
void |
incrProxyOpNoNamenodes() |
|
void |
incrProxyOpPermitAccepted() |
|
void |
incrProxyOpPermitRejected() |
public static final java.lang.String NAMESERVICE_RPC_METRICS_PREFIX
public NameserviceRPCMetrics(org.apache.hadoop.conf.Configuration conf,
java.lang.String nsId)
public static NameserviceRPCMetrics create(org.apache.hadoop.conf.Configuration conf, java.lang.String nameService)
public void incrProxyOpFailureStandby()
public long getProxyOpFailureStandby()
getProxyOpFailureStandby in interface NameserviceRPCMBeanpublic void incrProxyOpFailureCommunicate()
public long getProxyOpFailureCommunicate()
getProxyOpFailureCommunicate in interface NameserviceRPCMBeanpublic void incrProxyOpNoNamenodes()
public long getProxyOpNoNamenodes()
getProxyOpNoNamenodes in interface NameserviceRPCMBeanpublic void incrProxyOpPermitRejected()
public long getProxyOpPermitRejected()
getProxyOpPermitRejected in interface NameserviceRPCMBeanpublic void incrProxyOpPermitAccepted()
public long getProxyOpPermitAccepted()
getProxyOpPermitAccepted in interface NameserviceRPCMBeanpublic void addProxyTime(long time)
time - Proxy time of an operation in nanoseconds.public double getProxyAvg()
getProxyAvg in interface NameserviceRPCMBeanpublic long getProxyOps()
getProxyOps in interface NameserviceRPCMBeanpublic java.lang.String getNsId()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.