FederationRPCMBean@Metrics(name="RouterRPCActivity",
about="Router RPC Activity",
context="dfs")
public class FederationRPCMetrics
extends java.lang.Object
implements FederationRPCMBean
| Constructor | Description |
|---|---|
FederationRPCMetrics(org.apache.hadoop.conf.Configuration conf,
RouterRpcServer rpcServer) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addProcessingTime(long time) |
Add the time to process a request in the Router from the time we receive
the call until we send it to the Namenode.
|
void |
addProxyTime(long time,
FederationNamenodeServiceState state) |
Add the time to proxy an operation from the moment the Router sends it to
the Namenode until it replied.
|
static FederationRPCMetrics |
create(org.apache.hadoop.conf.Configuration conf,
RouterRpcServer rpcServer) |
|
long |
getActiveProxyOps() |
|
java.lang.String |
getAsyncCallerPool() |
Get the JSON representation of the async caller thread pool.
|
java.lang.String |
getAvailableHandlerOnPerNs() |
JSON representation of the available handler per Ns.
|
long |
getObserverProxyOps() |
|
double |
getProcessingAvg() |
|
long |
getProcessingOps() |
|
double |
getProxyAvg() |
|
long |
getProxyOpFailureClientOverloaded() |
|
long |
getProxyOpFailureCommunicate() |
|
long |
getProxyOpFailureStandby() |
|
long |
getProxyOpNoNamenodes() |
|
long |
getProxyOpNotImplemented() |
|
java.lang.String |
getProxyOpPermitAcceptedPerNs() |
Get the number of operations accepted of each namespace.
|
long |
getProxyOpPermitRejected() |
Get the number of operations rejected due to lack of permits.
|
java.lang.String |
getProxyOpPermitRejectedPerNs() |
Get the number of operations rejected due to lack of permits of each namespace.
|
long |
getProxyOpRetries() |
|
long |
getProxyOps() |
|
long |
getRouterFailureLockedOps() |
|
long |
getRouterFailureReadOnlyOps() |
|
long |
getRouterFailureSafemodeOps() |
|
long |
getRouterFailureStateStoreOps() |
|
java.lang.String |
getRpcClientConnections() |
JSON representation of the RPC connections from the Router to the NNs.
|
int |
getRpcClientNumActiveConnections() |
Get the number of active RPC connections between the Router and the NNs.
|
int |
getRpcClientNumActiveConnectionsRecently() |
Get the number of recently active RPC connections between
the Router and the NNs.
|
int |
getRpcClientNumConnectionPools() |
Get the number of connection pools between the Router and a NNs.
|
int |
getRpcClientNumConnections() |
Get the number of RPC connections between the Router and the NNs.
|
int |
getRpcClientNumCreatingConnections() |
Get the number of RPC connections to be created.
|
int |
getRpcClientNumIdleConnections() |
Get the number of idle RPC connections between the Router and the NNs.
|
int |
getRpcServerCallQueue() |
|
int |
getRpcServerNumOpenConnections() |
Get the number of RPC connections between the clients and the Router.
|
void |
incrProxyOpFailureClientOverloaded() |
|
void |
incrProxyOpFailureCommunicate() |
|
void |
incrProxyOpFailureStandby() |
|
void |
incrProxyOpNoNamenodes() |
|
void |
incrProxyOpNotImplemented() |
|
void |
incrProxyOpPermitRejected() |
|
void |
incrProxyOpRetries() |
|
void |
incrRouterFailureLocked() |
|
void |
incrRouterFailureReadOnly() |
|
void |
incrRouterFailureSafemode() |
|
void |
incrRouterFailureStateStore() |
|
static void |
reset() |
Reset the metrics system.
|
public FederationRPCMetrics(org.apache.hadoop.conf.Configuration conf,
RouterRpcServer rpcServer)
public static FederationRPCMetrics create(org.apache.hadoop.conf.Configuration conf, RouterRpcServer rpcServer)
public static void reset()
public void incrProxyOpFailureStandby()
public long getProxyOpFailureStandby()
getProxyOpFailureStandby in interface FederationRPCMBeanpublic void incrProxyOpFailureCommunicate()
public long getProxyOpFailureCommunicate()
getProxyOpFailureCommunicate in interface FederationRPCMBeanpublic void incrProxyOpFailureClientOverloaded()
public long getProxyOpFailureClientOverloaded()
getProxyOpFailureClientOverloaded in interface FederationRPCMBeanpublic void incrProxyOpNotImplemented()
public long getProxyOpNotImplemented()
getProxyOpNotImplemented in interface FederationRPCMBeanpublic void incrProxyOpRetries()
public long getProxyOpRetries()
getProxyOpRetries in interface FederationRPCMBeanpublic void incrProxyOpNoNamenodes()
public long getProxyOpNoNamenodes()
getProxyOpNoNamenodes in interface FederationRPCMBeanpublic void incrRouterFailureStateStore()
public long getRouterFailureStateStoreOps()
getRouterFailureStateStoreOps in interface FederationRPCMBeanpublic void incrRouterFailureSafemode()
public long getRouterFailureSafemodeOps()
getRouterFailureSafemodeOps in interface FederationRPCMBeanpublic void incrRouterFailureReadOnly()
public long getRouterFailureReadOnlyOps()
getRouterFailureReadOnlyOps in interface FederationRPCMBeanpublic void incrRouterFailureLocked()
public long getRouterFailureLockedOps()
getRouterFailureLockedOps in interface FederationRPCMBean@Metric({"RpcServerCallQueue","Length of the rpc server call queue"})
public int getRpcServerCallQueue()
getRpcServerCallQueue in interface FederationRPCMBean@Metric({"RpcServerNumOpenConnections","Number of the rpc server open connections"})
public int getRpcServerNumOpenConnections()
FederationRPCMBeangetRpcServerNumOpenConnections in interface FederationRPCMBean@Metric({"RpcClientNumConnections","Number of the rpc client open connections"})
public int getRpcClientNumConnections()
FederationRPCMBeangetRpcClientNumConnections in interface FederationRPCMBean@Metric({"RpcClientNumActiveConnections","Number of the rpc client active connections"})
public int getRpcClientNumActiveConnections()
FederationRPCMBeangetRpcClientNumActiveConnections in interface FederationRPCMBean@Metric({"RpcClientNumIdleConnections","Number of the rpc client idle connections"})
public int getRpcClientNumIdleConnections()
FederationRPCMBeangetRpcClientNumIdleConnections in interface FederationRPCMBean@Metric({"RpcClientNumActiveConnectionsRecently","Number of the rpc client active connections recently"})
public int getRpcClientNumActiveConnectionsRecently()
FederationRPCMBeangetRpcClientNumActiveConnectionsRecently in interface FederationRPCMBean@Metric({"RpcClientNumCreatingConnections","Number of the rpc client creating connections"})
public int getRpcClientNumCreatingConnections()
FederationRPCMBeangetRpcClientNumCreatingConnections in interface FederationRPCMBean@Metric({"RpcClientNumConnectionPools","Number of the rpc client connection pools"})
public int getRpcClientNumConnectionPools()
FederationRPCMBeangetRpcClientNumConnectionPools in interface FederationRPCMBeanpublic java.lang.String getRpcClientConnections()
FederationRPCMBeangetRpcClientConnections in interface FederationRPCMBeanpublic java.lang.String getAvailableHandlerOnPerNs()
FederationRPCMBeangetAvailableHandlerOnPerNs in interface FederationRPCMBeanpublic java.lang.String getAsyncCallerPool()
FederationRPCMBeangetAsyncCallerPool in interface FederationRPCMBeanpublic void addProxyTime(long time,
FederationNamenodeServiceState state)
time - Proxy time of an operation in nanoseconds.state - NameNode state. Maybe nullpublic double getProxyAvg()
getProxyAvg in interface FederationRPCMBeanpublic long getProxyOps()
getProxyOps in interface FederationRPCMBeanpublic long getActiveProxyOps()
getActiveProxyOps in interface FederationRPCMBeanpublic long getObserverProxyOps()
getObserverProxyOps in interface FederationRPCMBeanpublic void addProcessingTime(long time)
time - Process time of an operation in nanoseconds.public double getProcessingAvg()
getProcessingAvg in interface FederationRPCMBeanpublic long getProcessingOps()
getProcessingOps in interface FederationRPCMBeanpublic void incrProxyOpPermitRejected()
public long getProxyOpPermitRejected()
FederationRPCMBeangetProxyOpPermitRejected in interface FederationRPCMBeanpublic java.lang.String getProxyOpPermitRejectedPerNs()
FederationRPCMBeangetProxyOpPermitRejectedPerNs in interface FederationRPCMBeanpublic java.lang.String getProxyOpPermitAcceptedPerNs()
FederationRPCMBeangetProxyOpPermitAcceptedPerNs in interface FederationRPCMBeanCopyright © 2008–2025 Apache Software Foundation. All rights reserved.