Package com.oracle.coherence.grpc.proxy
Class GrpcProxyMetrics
- java.lang.Object
-
- com.oracle.coherence.grpc.proxy.GrpcProxyMetrics
-
- All Implemented Interfaces:
GrpcProxyMetricsMBean
public class GrpcProxyMetrics extends Object implements GrpcProxyMetricsMBean
The gRPC Proxy metrics MBean implementation.- Author:
- Jonathan Knight 2020.10.14
-
-
Field Summary
Fields Modifier and Type Field Description static long
MIN_SNAPSHOT_REFRESH
The minimum amount of time between request duration histogram snapshots.
-
Constructor Summary
Constructors Constructor Description GrpcProxyMetrics(String sName, DaemonPoolExecutor.DaemonPoolManagement poolManagement)
Create aGrpcProxyMetrics
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMessageDuration(long nanos)
Add a timing sample to the metrics.void
addRequestDuration(long nanos)
Add a timing sample to the metrics.int
getAbandonedThreadCount()
Return the total number of abandoned Daemon threads.int
getDaemonCount()
Return the number of Daemon threads that exist, if the pool has been started, or the number of Daemon threads that will be created, if the pool has not yet been started.int
getDaemonCountMax()
Returns the maximum number of daemon threads that the pool can create.int
getDaemonCountMin()
Returns the minimum number of daemon threads that the pool should have.long
getErrorRequestCount()
Return the count of requests that responded with an error.double
getErrorRequestFifteenMinuteRate()
Return the fifteen minute rate of requests that responded with an error.double
getErrorRequestFiveMinuteRate()
Return the five minute rate of requests that responded with an error.double
getErrorRequestMeanRate()
Return the mean rate of requests that responded with an error.double
getErrorRequestOneMinuteRate()
Return the one minute rate of requests that responded with an error.int
getHungTaskCount()
Return the total number of currently executing hung tasks.long
getHungTaskDuration()
Return the longest currently executing hung task duration (in milliseconds).long
getLastResetMillis()
Return the last time stats were reset.long
getLastResizeMillis()
Return the last time the daemon pool was resized.int
getMaxTaskBacklog()
Return the maximum backlog value since the last time the statistics were reset.double
getMessageDuration75thPercentile()
Return the 75th percentile value from the distribution of samples in the latest snapshot of the message duration metric.double
getMessageDuration95thPercentile()
Return the 95th percentile value from the distribution of samples in the latest snapshot of the message duration metric.double
getMessageDuration98thPercentile()
Return the 98th percentile value from the distribution of samples in the latest snapshot of the message duration metric.double
getMessageDuration999thPercentile()
Return the 99.9th percentile value from the distribution of samples in the latest snapshot of the message duration metric.double
getMessageDuration99thPercentile()
Return the 99th percentile value from the distribution of samples in the latest snapshot of the message duration metric.double
getMessageDurationMax()
Return the maximum value from the distribution of samples in the latest snapshot of the message duration metric.double
getMessageDurationMean()
Return the mean value from the distribution of samples in the latest snapshot of the message duration metric.double
getMessageDurationMin()
Return the minimum value from the distribution of samples in the latest snapshot of the message duration metric.double
getMessageDurationStdDev()
Return the standard deviation from the distribution of samples in the latest snapshot of the message duration metric.long
getMessagesReceivedCount()
Return the count of messages received.double
getMessagesReceivedFifteenMinuteRate()
Return the fifteen minute rate of messages received.double
getMessagesReceivedFiveMinuteRate()
Return the five minute rate of messages received.double
getMessagesReceivedMeanRate()
Return the mean rate of messages received.double
getMessagesReceivedOneMinuteRate()
Return the one minute rate of messages received.double
getRequestDuration75thPercentile()
Return the 75th percentile value from the distribution of samples in the latest snapshot of the request duration metric.double
getRequestDuration95thPercentile()
Return the 95th percentile value from the distribution of samples in the latest snapshot of the request duration metric.double
getRequestDuration98thPercentile()
Return the 98th percentile value from the distribution of samples in the latest snapshot of the request duration metric.double
getRequestDuration999thPercentile()
Return the 99.9th percentile value from the distribution of samples in the latest snapshot of the request duration metric.double
getRequestDuration99thPercentile()
Return the 99th percentile value from the distribution of samples in the latest snapshot of the request duration metric.double
getRequestDurationMax()
Return the maximum value from the distribution of samples in the latest snapshot of the request duration metric.double
getRequestDurationMean()
Return the mean value from the distribution of samples in the latest snapshot of the request duration metric.double
getRequestDurationMin()
Return the minimum value from the distribution of samples in the latest snapshot of the request duration metric.double
getRequestDurationStdDev()
Return the standard deviation from the distribution of samples in the latest snapshot of the request duration metric.long
getResponsesSentCount()
Return the count of responses sent.double
getResponsesSentFifteenMinuteRate()
Return the fifteen minute rate of responses sent.double
getResponsesSentFiveMinuteRate()
Return the five minute rate of responses sent.double
getResponsesSentMeanRate()
Return the mean rate of responses sent.double
getResponsesSentOneMinuteRate()
Return the one minute rate of responses sent.long
getSuccessfulRequestCount()
Return the count of requests that responded with success.double
getSuccessfulRequestFifteenMinuteRate()
Return the fifteen minute rate of successful requests.double
getSuccessfulRequestFiveMinuteRate()
Return the five minute rate of successful requests.double
getSuccessfulRequestMeanRate()
Return the one minute rate of successful requests.double
getSuccessfulRequestOneMinuteRate()
Return the one minute rate of successful requests.long
getTaskActiveMillis()
Return the total number of milliseconds spent by all Daemon threads while executing tasks since the last time the statistics were reset.long
getTaskAddCount()
Return the total number of tasks added to the pool since the last time the statistics were reset.int
getTaskBacklog()
Return the number of tasks that have been added to the pool, but not yet scheduled for execution.long
getTaskCount()
Return the total number of tasks executed by Daemon threads since the last time the statistics were reset.long
getTaskTimeout()
Return the default timeout value for PriorityTasks that don't explicitly specify the execution timeout value.int
getTaskTimeoutCount()
Return the total number of timed-out tasks since the last time the statistics were reset.void
markError()
Update the failed request meter.void
markReceived()
Update the messages received meter.void
markSent()
Update the messages sent meter.void
markSuccess()
Update the successful request meter.void
registerMBean(Registry registry)
Registers an MBean for thisGrpcProxyMetrics
.void
setDaemonCountMax(int count)
Set the maximum daemon pool thread count.void
setDaemonCountMin(int count)
Set the minimum daemon pool thread count.
-
-
-
Field Detail
-
MIN_SNAPSHOT_REFRESH
public static final long MIN_SNAPSHOT_REFRESH
The minimum amount of time between request duration histogram snapshots.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GrpcProxyMetrics
public GrpcProxyMetrics(String sName, DaemonPoolExecutor.DaemonPoolManagement poolManagement)
Create aGrpcProxyMetrics
.- Parameters:
sName
- the MBean ObjectNamepoolManagement
- the daemon pool management to get pool metrics- Throws:
NullPointerException
- is the name parameter isnull
-
-
Method Detail
-
addRequestDuration
public void addRequestDuration(long nanos)
Add a timing sample to the metrics.- Parameters:
nanos
- the request time in nanos.
-
addMessageDuration
public void addMessageDuration(long nanos)
Add a timing sample to the metrics.- Parameters:
nanos
- the request time in nanos.
-
markSuccess
public void markSuccess()
Update the successful request meter.
-
markError
public void markError()
Update the failed request meter.
-
markSent
public void markSent()
Update the messages sent meter.
-
markReceived
public void markReceived()
Update the messages received meter.
-
getSuccessfulRequestCount
public long getSuccessfulRequestCount()
Description copied from interface:GrpcProxyMetricsMBean
Return the count of requests that responded with success.- Specified by:
getSuccessfulRequestCount
in interfaceGrpcProxyMetricsMBean
- Returns:
- the count of requests that responded with success
-
getSuccessfulRequestFifteenMinuteRate
public double getSuccessfulRequestFifteenMinuteRate()
Description copied from interface:GrpcProxyMetricsMBean
Return the fifteen minute rate of successful requests.- Specified by:
getSuccessfulRequestFifteenMinuteRate
in interfaceGrpcProxyMetricsMBean
- Returns:
- the fifteen minute rate of successful requests
-
getSuccessfulRequestFiveMinuteRate
public double getSuccessfulRequestFiveMinuteRate()
Description copied from interface:GrpcProxyMetricsMBean
Return the five minute rate of successful requests.- Specified by:
getSuccessfulRequestFiveMinuteRate
in interfaceGrpcProxyMetricsMBean
- Returns:
- the five minute rate of successful requests
-
getSuccessfulRequestOneMinuteRate
public double getSuccessfulRequestOneMinuteRate()
Description copied from interface:GrpcProxyMetricsMBean
Return the one minute rate of successful requests.- Specified by:
getSuccessfulRequestOneMinuteRate
in interfaceGrpcProxyMetricsMBean
- Returns:
- the one minute rate of successful requests
-
getSuccessfulRequestMeanRate
public double getSuccessfulRequestMeanRate()
Description copied from interface:GrpcProxyMetricsMBean
Return the one minute rate of successful requests.- Specified by:
getSuccessfulRequestMeanRate
in interfaceGrpcProxyMetricsMBean
- Returns:
- the one minute rate of successful requests.
-
getErrorRequestCount
public long getErrorRequestCount()
Description copied from interface:GrpcProxyMetricsMBean
Return the count of requests that responded with an error.- Specified by:
getErrorRequestCount
in interfaceGrpcProxyMetricsMBean
- Returns:
- the count of requests that responded with an error
-
getErrorRequestFifteenMinuteRate
public double getErrorRequestFifteenMinuteRate()
Description copied from interface:GrpcProxyMetricsMBean
Return the fifteen minute rate of requests that responded with an error.- Specified by:
getErrorRequestFifteenMinuteRate
in interfaceGrpcProxyMetricsMBean
- Returns:
- the fifteen minute rate of requests that responded with an error
-
getErrorRequestFiveMinuteRate
public double getErrorRequestFiveMinuteRate()
Description copied from interface:GrpcProxyMetricsMBean
Return the five minute rate of requests that responded with an error.- Specified by:
getErrorRequestFiveMinuteRate
in interfaceGrpcProxyMetricsMBean
- Returns:
- the five minute rate of requests that responded with an error
-
getErrorRequestOneMinuteRate
public double getErrorRequestOneMinuteRate()
Description copied from interface:GrpcProxyMetricsMBean
Return the one minute rate of requests that responded with an error.- Specified by:
getErrorRequestOneMinuteRate
in interfaceGrpcProxyMetricsMBean
- Returns:
- the one minute rate of requests that responded with an error
-
getErrorRequestMeanRate
public double getErrorRequestMeanRate()
Description copied from interface:GrpcProxyMetricsMBean
Return the mean rate of requests that responded with an error.- Specified by:
getErrorRequestMeanRate
in interfaceGrpcProxyMetricsMBean
- Returns:
- the mean rate of requests that responded with an error
-
getRequestDuration75thPercentile
public double getRequestDuration75thPercentile()
Description copied from interface:GrpcProxyMetricsMBean
Return the 75th percentile value from the distribution of samples in the latest snapshot of the request duration metric.- Specified by:
getRequestDuration75thPercentile
in interfaceGrpcProxyMetricsMBean
- Returns:
- the 75th percentile value from the distribution of samples in the latest snapshot of the request duration metric.
-
getRequestDuration95thPercentile
public double getRequestDuration95thPercentile()
Description copied from interface:GrpcProxyMetricsMBean
Return the 95th percentile value from the distribution of samples in the latest snapshot of the request duration metric.- Specified by:
getRequestDuration95thPercentile
in interfaceGrpcProxyMetricsMBean
- Returns:
- the 95th percentile value from the distribution of samples in the latest snapshot of the request duration metric.
-
getRequestDuration98thPercentile
public double getRequestDuration98thPercentile()
Description copied from interface:GrpcProxyMetricsMBean
Return the 98th percentile value from the distribution of samples in the latest snapshot of the request duration metric.- Specified by:
getRequestDuration98thPercentile
in interfaceGrpcProxyMetricsMBean
- Returns:
- the 98th percentile value from the distribution of samples in the latest snapshot of the request duration metric.
-
getRequestDuration99thPercentile
public double getRequestDuration99thPercentile()
Description copied from interface:GrpcProxyMetricsMBean
Return the 99th percentile value from the distribution of samples in the latest snapshot of the request duration metric.- Specified by:
getRequestDuration99thPercentile
in interfaceGrpcProxyMetricsMBean
- Returns:
- the 99th percentile value from the distribution of samples in the latest snapshot of the request duration metric.
-
getRequestDuration999thPercentile
public double getRequestDuration999thPercentile()
Description copied from interface:GrpcProxyMetricsMBean
Return the 99.9th percentile value from the distribution of samples in the latest snapshot of the request duration metric.- Specified by:
getRequestDuration999thPercentile
in interfaceGrpcProxyMetricsMBean
- Returns:
- the 99.9th percentile value from the distribution of samples in the latest snapshot of the request duration metric.
-
getRequestDurationMax
public double getRequestDurationMax()
Description copied from interface:GrpcProxyMetricsMBean
Return the maximum value from the distribution of samples in the latest snapshot of the request duration metric.- Specified by:
getRequestDurationMax
in interfaceGrpcProxyMetricsMBean
- Returns:
- the maximum value from the distribution of samples in the latest snapshot of the request duration metric.
-
getRequestDurationMean
public double getRequestDurationMean()
Description copied from interface:GrpcProxyMetricsMBean
Return the mean value from the distribution of samples in the latest snapshot of the request duration metric.- Specified by:
getRequestDurationMean
in interfaceGrpcProxyMetricsMBean
- Returns:
- the mean value from the distribution of samples in the latest snapshot of the request duration metric.
-
getRequestDurationMin
public double getRequestDurationMin()
Description copied from interface:GrpcProxyMetricsMBean
Return the minimum value from the distribution of samples in the latest snapshot of the request duration metric.- Specified by:
getRequestDurationMin
in interfaceGrpcProxyMetricsMBean
- Returns:
- the minimum value from the distribution of samples in the latest snapshot of the request duration metric.
-
getRequestDurationStdDev
public double getRequestDurationStdDev()
Description copied from interface:GrpcProxyMetricsMBean
Return the standard deviation from the distribution of samples in the latest snapshot of the request duration metric.- Specified by:
getRequestDurationStdDev
in interfaceGrpcProxyMetricsMBean
- Returns:
- the standard deviation from the distribution of samples in the latest snapshot of the request duration metric.
-
getMessageDuration75thPercentile
public double getMessageDuration75thPercentile()
Description copied from interface:GrpcProxyMetricsMBean
Return the 75th percentile value from the distribution of samples in the latest snapshot of the message duration metric.- Specified by:
getMessageDuration75thPercentile
in interfaceGrpcProxyMetricsMBean
- Returns:
- the 75th percentile value from the distribution of samples in the latest snapshot of the message duration metric.
-
getMessageDuration95thPercentile
public double getMessageDuration95thPercentile()
Description copied from interface:GrpcProxyMetricsMBean
Return the 95th percentile value from the distribution of samples in the latest snapshot of the message duration metric.- Specified by:
getMessageDuration95thPercentile
in interfaceGrpcProxyMetricsMBean
- Returns:
- the 95th percentile value from the distribution of samples in the latest snapshot of the message duration metric.
-
getMessageDuration98thPercentile
public double getMessageDuration98thPercentile()
Description copied from interface:GrpcProxyMetricsMBean
Return the 98th percentile value from the distribution of samples in the latest snapshot of the message duration metric.- Specified by:
getMessageDuration98thPercentile
in interfaceGrpcProxyMetricsMBean
- Returns:
- the 98th percentile value from the distribution of samples in the latest snapshot of the message duration metric.
-
getMessageDuration99thPercentile
public double getMessageDuration99thPercentile()
Description copied from interface:GrpcProxyMetricsMBean
Return the 99th percentile value from the distribution of samples in the latest snapshot of the message duration metric.- Specified by:
getMessageDuration99thPercentile
in interfaceGrpcProxyMetricsMBean
- Returns:
- the 99th percentile value from the distribution of samples in the latest snapshot of the message duration metric.
-
getMessageDuration999thPercentile
public double getMessageDuration999thPercentile()
Description copied from interface:GrpcProxyMetricsMBean
Return the 99.9th percentile value from the distribution of samples in the latest snapshot of the message duration metric.- Specified by:
getMessageDuration999thPercentile
in interfaceGrpcProxyMetricsMBean
- Returns:
- the 99.9th percentile value from the distribution of samples in the latest snapshot of the message duration metric.
-
getMessageDurationMax
public double getMessageDurationMax()
Description copied from interface:GrpcProxyMetricsMBean
Return the maximum value from the distribution of samples in the latest snapshot of the message duration metric.- Specified by:
getMessageDurationMax
in interfaceGrpcProxyMetricsMBean
- Returns:
- the maximum value from the distribution of samples in the latest snapshot of the message duration metric.
-
getMessageDurationMean
public double getMessageDurationMean()
Description copied from interface:GrpcProxyMetricsMBean
Return the mean value from the distribution of samples in the latest snapshot of the message duration metric.- Specified by:
getMessageDurationMean
in interfaceGrpcProxyMetricsMBean
- Returns:
- the mean value from the distribution of samples in the latest snapshot of the message duration metric.
-
getMessageDurationMin
public double getMessageDurationMin()
Description copied from interface:GrpcProxyMetricsMBean
Return the minimum value from the distribution of samples in the latest snapshot of the message duration metric.- Specified by:
getMessageDurationMin
in interfaceGrpcProxyMetricsMBean
- Returns:
- the minimum value from the distribution of samples in the latest snapshot of the message duration metric.
-
getMessageDurationStdDev
public double getMessageDurationStdDev()
Description copied from interface:GrpcProxyMetricsMBean
Return the standard deviation from the distribution of samples in the latest snapshot of the message duration metric.- Specified by:
getMessageDurationStdDev
in interfaceGrpcProxyMetricsMBean
- Returns:
- the standard deviation from the distribution of samples in the latest snapshot of the message duration metric.
-
getMessagesReceivedCount
public long getMessagesReceivedCount()
Description copied from interface:GrpcProxyMetricsMBean
Return the count of messages received.- Specified by:
getMessagesReceivedCount
in interfaceGrpcProxyMetricsMBean
- Returns:
- the count of messages received
-
getMessagesReceivedFifteenMinuteRate
public double getMessagesReceivedFifteenMinuteRate()
Description copied from interface:GrpcProxyMetricsMBean
Return the fifteen minute rate of messages received.- Specified by:
getMessagesReceivedFifteenMinuteRate
in interfaceGrpcProxyMetricsMBean
- Returns:
- the fifteen minute rate of messages received
-
getMessagesReceivedFiveMinuteRate
public double getMessagesReceivedFiveMinuteRate()
Description copied from interface:GrpcProxyMetricsMBean
Return the five minute rate of messages received.- Specified by:
getMessagesReceivedFiveMinuteRate
in interfaceGrpcProxyMetricsMBean
- Returns:
- the five minute rate of messages received
-
getMessagesReceivedOneMinuteRate
public double getMessagesReceivedOneMinuteRate()
Description copied from interface:GrpcProxyMetricsMBean
Return the one minute rate of messages received.- Specified by:
getMessagesReceivedOneMinuteRate
in interfaceGrpcProxyMetricsMBean
- Returns:
- the one minute rate of messages received
-
getMessagesReceivedMeanRate
public double getMessagesReceivedMeanRate()
Description copied from interface:GrpcProxyMetricsMBean
Return the mean rate of messages received.- Specified by:
getMessagesReceivedMeanRate
in interfaceGrpcProxyMetricsMBean
- Returns:
- the mean rate of messages received
-
getResponsesSentCount
public long getResponsesSentCount()
Description copied from interface:GrpcProxyMetricsMBean
Return the count of responses sent.- Specified by:
getResponsesSentCount
in interfaceGrpcProxyMetricsMBean
- Returns:
- the count of responses sent
-
getResponsesSentFifteenMinuteRate
public double getResponsesSentFifteenMinuteRate()
Description copied from interface:GrpcProxyMetricsMBean
Return the fifteen minute rate of responses sent.- Specified by:
getResponsesSentFifteenMinuteRate
in interfaceGrpcProxyMetricsMBean
- Returns:
- the fifteen minute rate of responses sent
-
getResponsesSentFiveMinuteRate
public double getResponsesSentFiveMinuteRate()
Description copied from interface:GrpcProxyMetricsMBean
Return the five minute rate of responses sent.- Specified by:
getResponsesSentFiveMinuteRate
in interfaceGrpcProxyMetricsMBean
- Returns:
- the five minute rate of responses sent
-
getResponsesSentOneMinuteRate
public double getResponsesSentOneMinuteRate()
Description copied from interface:GrpcProxyMetricsMBean
Return the one minute rate of responses sent.- Specified by:
getResponsesSentOneMinuteRate
in interfaceGrpcProxyMetricsMBean
- Returns:
- the one minute rate of responses sent
-
getResponsesSentMeanRate
public double getResponsesSentMeanRate()
Description copied from interface:GrpcProxyMetricsMBean
Return the mean rate of responses sent.- Specified by:
getResponsesSentMeanRate
in interfaceGrpcProxyMetricsMBean
- Returns:
- the mean rate of responses sent
-
getTaskBacklog
public int getTaskBacklog()
Description copied from interface:GrpcProxyMetricsMBean
Return the number of tasks that have been added to the pool, but not yet scheduled for execution.- Specified by:
getTaskBacklog
in interfaceGrpcProxyMetricsMBean
- Returns:
- the number of tasks that have been added to the pool, but not yet scheduled for execution
-
getDaemonCountMax
public int getDaemonCountMax()
Description copied from interface:GrpcProxyMetricsMBean
Returns the maximum number of daemon threads that the pool can create.- Specified by:
getDaemonCountMax
in interfaceGrpcProxyMetricsMBean
- Returns:
- the maximum number of daemon threads that the pool can create
-
setDaemonCountMax
public void setDaemonCountMax(int count)
Description copied from interface:GrpcProxyMetricsMBean
Set the maximum daemon pool thread count.- Specified by:
setDaemonCountMax
in interfaceGrpcProxyMetricsMBean
- Parameters:
count
- the maximum daemon pool thread count
-
getDaemonCountMin
public int getDaemonCountMin()
Description copied from interface:GrpcProxyMetricsMBean
Returns the minimum number of daemon threads that the pool should have.- Specified by:
getDaemonCountMin
in interfaceGrpcProxyMetricsMBean
- Returns:
- the minimum number of daemon threads that the pool should have
-
setDaemonCountMin
public void setDaemonCountMin(int count)
Description copied from interface:GrpcProxyMetricsMBean
Set the minimum daemon pool thread count.- Specified by:
setDaemonCountMin
in interfaceGrpcProxyMetricsMBean
- Parameters:
count
- the minimum daemon pool thread count
-
getDaemonCount
public int getDaemonCount()
Description copied from interface:GrpcProxyMetricsMBean
Return the number of Daemon threads that exist, if the pool has been started, or the number of Daemon threads that will be created, if the pool has not yet been started.- Specified by:
getDaemonCount
in interfaceGrpcProxyMetricsMBean
- Returns:
- the number of Daemon threads that exist
-
getAbandonedThreadCount
public int getAbandonedThreadCount()
Description copied from interface:GrpcProxyMetricsMBean
Return the total number of abandoned Daemon threads.Note: this property is purposely not reset when stats are reset.
- Specified by:
getAbandonedThreadCount
in interfaceGrpcProxyMetricsMBean
- Returns:
- the total number of abandoned Daemon threads
-
getTaskActiveMillis
public long getTaskActiveMillis()
Description copied from interface:GrpcProxyMetricsMBean
Return the total number of milliseconds spent by all Daemon threads while executing tasks since the last time the statistics were reset.Note: this value could be greater then the time elapsed since each daemon adds its own processing time when working in parallel.
- Specified by:
getTaskActiveMillis
in interfaceGrpcProxyMetricsMBean
- Returns:
- the total number of milliseconds spent by all Daemon threads while executing tasks since the last time the statistics were reset
-
getHungTaskCount
public int getHungTaskCount()
Description copied from interface:GrpcProxyMetricsMBean
Return the total number of currently executing hung tasks.Note: this property is purposely not reset when stats are reset.
- Specified by:
getHungTaskCount
in interfaceGrpcProxyMetricsMBean
- Returns:
- the total number of currently executing hung tasks
-
getHungTaskDuration
public long getHungTaskDuration()
Description copied from interface:GrpcProxyMetricsMBean
Return the longest currently executing hung task duration (in milliseconds).Note: this property is purposely not reset when stats are reset.
- Specified by:
getHungTaskDuration
in interfaceGrpcProxyMetricsMBean
- Returns:
- the longest currently executing hung task duration (in milliseconds)
-
getLastResetMillis
public long getLastResetMillis()
Description copied from interface:GrpcProxyMetricsMBean
Return the last time stats were reset.- Specified by:
getLastResetMillis
in interfaceGrpcProxyMetricsMBean
- Returns:
- the last time stats were reset
-
getLastResizeMillis
public long getLastResizeMillis()
Description copied from interface:GrpcProxyMetricsMBean
Return the last time the daemon pool was resized.- Specified by:
getLastResizeMillis
in interfaceGrpcProxyMetricsMBean
- Returns:
- the last time the daemon pool was resized
-
getTaskAddCount
public long getTaskAddCount()
Description copied from interface:GrpcProxyMetricsMBean
Return the total number of tasks added to the pool since the last time the statistics were reset.- Specified by:
getTaskAddCount
in interfaceGrpcProxyMetricsMBean
- Returns:
- the total number of tasks added to the pool since the last time the statistics were reset
-
getTaskCount
public long getTaskCount()
Description copied from interface:GrpcProxyMetricsMBean
Return the total number of tasks executed by Daemon threads since the last time the statistics were reset.- Specified by:
getTaskCount
in interfaceGrpcProxyMetricsMBean
- Returns:
- the total number of tasks executed by Daemon threads since the last time the statistics were reset
-
getMaxTaskBacklog
public int getMaxTaskBacklog()
Description copied from interface:GrpcProxyMetricsMBean
Return the maximum backlog value since the last time the statistics were reset.- Specified by:
getMaxTaskBacklog
in interfaceGrpcProxyMetricsMBean
- Returns:
- the maximum backlog value since the last time the statistics were reset
-
getTaskTimeoutCount
public int getTaskTimeoutCount()
Description copied from interface:GrpcProxyMetricsMBean
Return the total number of timed-out tasks since the last time the statistics were reset.- Specified by:
getTaskTimeoutCount
in interfaceGrpcProxyMetricsMBean
- Returns:
- the total number of timed-out tasks since the last time the statistics were reset
-
getTaskTimeout
public long getTaskTimeout()
Description copied from interface:GrpcProxyMetricsMBean
Return the default timeout value for PriorityTasks that don't explicitly specify the execution timeout value.- Specified by:
getTaskTimeout
in interfaceGrpcProxyMetricsMBean
- Returns:
- the default timeout value for PriorityTasks that don't explicitly specify the execution timeout value
-
registerMBean
public void registerMBean(Registry registry)
Registers an MBean for thisGrpcProxyMetrics
.
-
-