| Modifier and Type | Field | Description |
|---|---|---|
static java.util.concurrent.TimeUnit |
DEFAULT_METRIC_TIME_UNIT |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addDeferredRpcProcessingTime(long processingTime) |
|
void |
addRpcEnQueueTime(long enQTime) |
Sometimes, the request time observed by the client is much longer than
the queue + process time on the RPC server.Perhaps the RPC request
'waiting enQueue' took too long on the RPC server, so we should add
enQueue time to RpcMetrics.
|
void |
addRpcLockWaitTime(long waitTime) |
|
void |
addRpcProcessingTime(long processingTime) |
Add an RPC processing time sample
|
void |
addRpcQueueTime(long qTime) |
Add an RPC queue time sample
|
void |
addRpcResponseTime(long responseTime) |
|
int |
callQueueLength() |
|
static RpcMetrics |
create(Server server,
Configuration conf) |
|
long |
getClientBackoffDisconnected() |
Returns the number of disconnected backoffs.
|
double |
getDeferredRpcProcessingMean() |
|
long |
getDeferredRpcProcessingSampleCount() |
|
double |
getDeferredRpcProcessingStdDev() |
|
MutableRate |
getDeferredRpcProcessingTime() |
|
java.util.concurrent.TimeUnit |
getMetricsTimeUnit() |
|
static java.util.concurrent.TimeUnit |
getMetricsTimeUnit(Configuration conf) |
|
int |
getNumInProcessHandler() |
|
double |
getProcessingMean() |
Returns mean of RPC Processing Times.
|
long |
getProcessingSampleCount() |
Returns the number of samples that we have seen so far.
|
double |
getProcessingStdDev() |
Return Standard Deviation of the Processing Time.
|
MutableCounterLong |
getRpcAuthorizationSuccesses() |
|
MutableRate |
getRpcProcessingTime() |
Returns a MutableRate Counter.
|
long |
getRpcRequeueCalls() |
Returns the number of requeue calls.
|
long |
getRpcSlowCalls() |
Returns the number of slow calls.
|
MetricsTag |
getTag(java.lang.String tagName) |
|
long |
getTotalRequests() |
|
long |
getTotalRequestsPerSecond() |
|
void |
incrAuthenticationFailures() |
One authentication failure event
|
void |
incrAuthenticationSuccesses() |
One authentication success event
|
void |
incrAuthorizationFailures() |
One authorization failure event
|
void |
incrAuthorizationSuccesses() |
One authorization success event
|
void |
incrClientBackoff() |
One client backoff event
|
void |
incrClientBackoffDisconnected() |
Client was disconnected due to backoff
|
void |
incrReceivedBytes(int count) |
Increment received bytes by count
|
void |
incrRequeueCalls() |
Increments the Requeue Calls counter.
|
void |
incrRpcCallSuccesses() |
One RPC call success event.
|
void |
incrSentBytes(int count) |
Increment sent bytes by count
|
void |
incrSlowRpc() |
Increments the Slow RPC counter.
|
java.lang.String |
name() |
|
long |
numDroppedConnections() |
|
int |
numOpenConnections() |
|
java.lang.String |
numOpenConnectionsPerUser() |
|
void |
shutdown() |
Shutdown the instrumentation for the process
|
public static final java.util.concurrent.TimeUnit DEFAULT_METRIC_TIME_UNIT
public java.lang.String name()
public static RpcMetrics create(Server server, Configuration conf)
@Metric("Number of open connections") public int numOpenConnections()
@Metric("Number of in process handlers") public int getNumInProcessHandler()
@Metric("Number of open connections per user") public java.lang.String numOpenConnectionsPerUser()
@Metric("Length of the call queue") public int callQueueLength()
@Metric("Number of dropped connections") public long numDroppedConnections()
@Metric("Number of total requests") public long getTotalRequests()
@Metric("Number of total requests per second") public long getTotalRequestsPerSecond()
public java.util.concurrent.TimeUnit getMetricsTimeUnit()
public static java.util.concurrent.TimeUnit getMetricsTimeUnit(Configuration conf)
public void incrAuthenticationFailures()
public void incrAuthenticationSuccesses()
public void incrAuthorizationSuccesses()
public void incrAuthorizationFailures()
public void shutdown()
public void incrSentBytes(int count)
count - to incrementpublic void incrReceivedBytes(int count)
count - to incrementpublic void addRpcEnQueueTime(long enQTime)
enQTime - the queue timepublic void addRpcQueueTime(long qTime)
qTime - the queue timepublic void addRpcLockWaitTime(long waitTime)
public void addRpcProcessingTime(long processingTime)
processingTime - the processing timepublic void addRpcResponseTime(long responseTime)
public void addDeferredRpcProcessingTime(long processingTime)
public void incrClientBackoff()
public void incrClientBackoffDisconnected()
public long getClientBackoffDisconnected()
public void incrSlowRpc()
public void incrRequeueCalls()
public void incrRpcCallSuccesses()
public MutableRate getRpcProcessingTime()
public long getProcessingSampleCount()
public double getProcessingMean()
public double getProcessingStdDev()
public long getRpcSlowCalls()
@VisibleForTesting public long getRpcRequeueCalls()
public MutableRate getDeferredRpcProcessingTime()
public long getDeferredRpcProcessingSampleCount()
public double getDeferredRpcProcessingMean()
public double getDeferredRpcProcessingStdDev()
@VisibleForTesting public MetricsTag getTag(java.lang.String tagName)
@VisibleForTesting public MutableCounterLong getRpcAuthorizationSuccesses()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.