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 longMIN_SNAPSHOT_REFRESHThe 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 voidaddMessageDuration(long nanos)Add a timing sample to the metrics.voidaddRequestDuration(long nanos)Add a timing sample to the metrics.intgetAbandonedThreadCount()Return the total number of abandoned Daemon threads.intgetDaemonCount()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.intgetDaemonCountMax()Returns the maximum number of daemon threads that the pool can create.intgetDaemonCountMin()Returns the minimum number of daemon threads that the pool should have.longgetErrorRequestCount()Return the count of requests that responded with an error.doublegetErrorRequestFifteenMinuteRate()Return the fifteen minute rate of requests that responded with an error.doublegetErrorRequestFiveMinuteRate()Return the five minute rate of requests that responded with an error.doublegetErrorRequestMeanRate()Return the mean rate of requests that responded with an error.doublegetErrorRequestOneMinuteRate()Return the one minute rate of requests that responded with an error.intgetHungTaskCount()Return the total number of currently executing hung tasks.longgetHungTaskDuration()Return the longest currently executing hung task duration (in milliseconds).longgetLastResetMillis()Return the last time stats were reset.longgetLastResizeMillis()Return the last time the daemon pool was resized.intgetMaxTaskBacklog()Return the maximum backlog value since the last time the statistics were reset.doublegetMessageDuration75thPercentile()Return the 75th percentile value from the distribution of samples in the latest snapshot of the message duration metric.doublegetMessageDuration95thPercentile()Return the 95th percentile value from the distribution of samples in the latest snapshot of the message duration metric.doublegetMessageDuration98thPercentile()Return the 98th percentile value from the distribution of samples in the latest snapshot of the message duration metric.doublegetMessageDuration999thPercentile()Return the 99.9th percentile value from the distribution of samples in the latest snapshot of the message duration metric.doublegetMessageDuration99thPercentile()Return the 99th percentile value from the distribution of samples in the latest snapshot of the message duration metric.doublegetMessageDurationMax()Return the maximum value from the distribution of samples in the latest snapshot of the message duration metric.doublegetMessageDurationMean()Return the mean value from the distribution of samples in the latest snapshot of the message duration metric.doublegetMessageDurationMin()Return the minimum value from the distribution of samples in the latest snapshot of the message duration metric.doublegetMessageDurationStdDev()Return the standard deviation from the distribution of samples in the latest snapshot of the message duration metric.longgetMessagesReceivedCount()Return the count of messages received.doublegetMessagesReceivedFifteenMinuteRate()Return the fifteen minute rate of messages received.doublegetMessagesReceivedFiveMinuteRate()Return the five minute rate of messages received.doublegetMessagesReceivedMeanRate()Return the mean rate of messages received.doublegetMessagesReceivedOneMinuteRate()Return the one minute rate of messages received.doublegetRequestDuration75thPercentile()Return the 75th percentile value from the distribution of samples in the latest snapshot of the request duration metric.doublegetRequestDuration95thPercentile()Return the 95th percentile value from the distribution of samples in the latest snapshot of the request duration metric.doublegetRequestDuration98thPercentile()Return the 98th percentile value from the distribution of samples in the latest snapshot of the request duration metric.doublegetRequestDuration999thPercentile()Return the 99.9th percentile value from the distribution of samples in the latest snapshot of the request duration metric.doublegetRequestDuration99thPercentile()Return the 99th percentile value from the distribution of samples in the latest snapshot of the request duration metric.doublegetRequestDurationMax()Return the maximum value from the distribution of samples in the latest snapshot of the request duration metric.doublegetRequestDurationMean()Return the mean value from the distribution of samples in the latest snapshot of the request duration metric.doublegetRequestDurationMin()Return the minimum value from the distribution of samples in the latest snapshot of the request duration metric.doublegetRequestDurationStdDev()Return the standard deviation from the distribution of samples in the latest snapshot of the request duration metric.longgetResponsesSentCount()Return the count of responses sent.doublegetResponsesSentFifteenMinuteRate()Return the fifteen minute rate of responses sent.doublegetResponsesSentFiveMinuteRate()Return the five minute rate of responses sent.doublegetResponsesSentMeanRate()Return the mean rate of responses sent.doublegetResponsesSentOneMinuteRate()Return the one minute rate of responses sent.longgetSuccessfulRequestCount()Return the count of requests that responded with success.doublegetSuccessfulRequestFifteenMinuteRate()Return the fifteen minute rate of successful requests.doublegetSuccessfulRequestFiveMinuteRate()Return the five minute rate of successful requests.doublegetSuccessfulRequestMeanRate()Return the one minute rate of successful requests.doublegetSuccessfulRequestOneMinuteRate()Return the one minute rate of successful requests.longgetTaskActiveMillis()Return the total number of milliseconds spent by all Daemon threads while executing tasks since the last time the statistics were reset.longgetTaskAddCount()Return the total number of tasks added to the pool since the last time the statistics were reset.intgetTaskBacklog()Return the number of tasks that have been added to the pool, but not yet scheduled for execution.longgetTaskCount()Return the total number of tasks executed by Daemon threads since the last time the statistics were reset.longgetTaskTimeout()Return the default timeout value for PriorityTasks that don't explicitly specify the execution timeout value.intgetTaskTimeoutCount()Return the total number of timed-out tasks since the last time the statistics were reset.voidmarkError()Update the failed request meter.voidmarkReceived()Update the messages received meter.voidmarkSent()Update the messages sent meter.voidmarkSuccess()Update the successful request meter.voidregisterMBean(Registry registry)Registers an MBean for thisGrpcProxyMetrics.voidsetDaemonCountMax(int count)Set the maximum daemon pool thread count.voidsetDaemonCountMin(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:GrpcProxyMetricsMBeanReturn the count of requests that responded with success.- Specified by:
getSuccessfulRequestCountin interfaceGrpcProxyMetricsMBean- Returns:
- the count of requests that responded with success
-
getSuccessfulRequestFifteenMinuteRate
public double getSuccessfulRequestFifteenMinuteRate()
Description copied from interface:GrpcProxyMetricsMBeanReturn the fifteen minute rate of successful requests.- Specified by:
getSuccessfulRequestFifteenMinuteRatein interfaceGrpcProxyMetricsMBean- Returns:
- the fifteen minute rate of successful requests
-
getSuccessfulRequestFiveMinuteRate
public double getSuccessfulRequestFiveMinuteRate()
Description copied from interface:GrpcProxyMetricsMBeanReturn the five minute rate of successful requests.- Specified by:
getSuccessfulRequestFiveMinuteRatein interfaceGrpcProxyMetricsMBean- Returns:
- the five minute rate of successful requests
-
getSuccessfulRequestOneMinuteRate
public double getSuccessfulRequestOneMinuteRate()
Description copied from interface:GrpcProxyMetricsMBeanReturn the one minute rate of successful requests.- Specified by:
getSuccessfulRequestOneMinuteRatein interfaceGrpcProxyMetricsMBean- Returns:
- the one minute rate of successful requests
-
getSuccessfulRequestMeanRate
public double getSuccessfulRequestMeanRate()
Description copied from interface:GrpcProxyMetricsMBeanReturn the one minute rate of successful requests.- Specified by:
getSuccessfulRequestMeanRatein interfaceGrpcProxyMetricsMBean- Returns:
- the one minute rate of successful requests.
-
getErrorRequestCount
public long getErrorRequestCount()
Description copied from interface:GrpcProxyMetricsMBeanReturn the count of requests that responded with an error.- Specified by:
getErrorRequestCountin interfaceGrpcProxyMetricsMBean- Returns:
- the count of requests that responded with an error
-
getErrorRequestFifteenMinuteRate
public double getErrorRequestFifteenMinuteRate()
Description copied from interface:GrpcProxyMetricsMBeanReturn the fifteen minute rate of requests that responded with an error.- Specified by:
getErrorRequestFifteenMinuteRatein interfaceGrpcProxyMetricsMBean- Returns:
- the fifteen minute rate of requests that responded with an error
-
getErrorRequestFiveMinuteRate
public double getErrorRequestFiveMinuteRate()
Description copied from interface:GrpcProxyMetricsMBeanReturn the five minute rate of requests that responded with an error.- Specified by:
getErrorRequestFiveMinuteRatein interfaceGrpcProxyMetricsMBean- Returns:
- the five minute rate of requests that responded with an error
-
getErrorRequestOneMinuteRate
public double getErrorRequestOneMinuteRate()
Description copied from interface:GrpcProxyMetricsMBeanReturn the one minute rate of requests that responded with an error.- Specified by:
getErrorRequestOneMinuteRatein interfaceGrpcProxyMetricsMBean- Returns:
- the one minute rate of requests that responded with an error
-
getErrorRequestMeanRate
public double getErrorRequestMeanRate()
Description copied from interface:GrpcProxyMetricsMBeanReturn the mean rate of requests that responded with an error.- Specified by:
getErrorRequestMeanRatein interfaceGrpcProxyMetricsMBean- Returns:
- the mean rate of requests that responded with an error
-
getRequestDuration75thPercentile
public double getRequestDuration75thPercentile()
Description copied from interface:GrpcProxyMetricsMBeanReturn the 75th percentile value from the distribution of samples in the latest snapshot of the request duration metric.- Specified by:
getRequestDuration75thPercentilein 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:GrpcProxyMetricsMBeanReturn the 95th percentile value from the distribution of samples in the latest snapshot of the request duration metric.- Specified by:
getRequestDuration95thPercentilein 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:GrpcProxyMetricsMBeanReturn the 98th percentile value from the distribution of samples in the latest snapshot of the request duration metric.- Specified by:
getRequestDuration98thPercentilein 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:GrpcProxyMetricsMBeanReturn the 99th percentile value from the distribution of samples in the latest snapshot of the request duration metric.- Specified by:
getRequestDuration99thPercentilein 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:GrpcProxyMetricsMBeanReturn the 99.9th percentile value from the distribution of samples in the latest snapshot of the request duration metric.- Specified by:
getRequestDuration999thPercentilein 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:GrpcProxyMetricsMBeanReturn the maximum value from the distribution of samples in the latest snapshot of the request duration metric.- Specified by:
getRequestDurationMaxin 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:GrpcProxyMetricsMBeanReturn the mean value from the distribution of samples in the latest snapshot of the request duration metric.- Specified by:
getRequestDurationMeanin 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:GrpcProxyMetricsMBeanReturn the minimum value from the distribution of samples in the latest snapshot of the request duration metric.- Specified by:
getRequestDurationMinin 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:GrpcProxyMetricsMBeanReturn the standard deviation from the distribution of samples in the latest snapshot of the request duration metric.- Specified by:
getRequestDurationStdDevin 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:GrpcProxyMetricsMBeanReturn the 75th percentile value from the distribution of samples in the latest snapshot of the message duration metric.- Specified by:
getMessageDuration75thPercentilein 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:GrpcProxyMetricsMBeanReturn the 95th percentile value from the distribution of samples in the latest snapshot of the message duration metric.- Specified by:
getMessageDuration95thPercentilein 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:GrpcProxyMetricsMBeanReturn the 98th percentile value from the distribution of samples in the latest snapshot of the message duration metric.- Specified by:
getMessageDuration98thPercentilein 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:GrpcProxyMetricsMBeanReturn the 99th percentile value from the distribution of samples in the latest snapshot of the message duration metric.- Specified by:
getMessageDuration99thPercentilein 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:GrpcProxyMetricsMBeanReturn the 99.9th percentile value from the distribution of samples in the latest snapshot of the message duration metric.- Specified by:
getMessageDuration999thPercentilein 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:GrpcProxyMetricsMBeanReturn the maximum value from the distribution of samples in the latest snapshot of the message duration metric.- Specified by:
getMessageDurationMaxin 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:GrpcProxyMetricsMBeanReturn the mean value from the distribution of samples in the latest snapshot of the message duration metric.- Specified by:
getMessageDurationMeanin 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:GrpcProxyMetricsMBeanReturn the minimum value from the distribution of samples in the latest snapshot of the message duration metric.- Specified by:
getMessageDurationMinin 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:GrpcProxyMetricsMBeanReturn the standard deviation from the distribution of samples in the latest snapshot of the message duration metric.- Specified by:
getMessageDurationStdDevin 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:GrpcProxyMetricsMBeanReturn the count of messages received.- Specified by:
getMessagesReceivedCountin interfaceGrpcProxyMetricsMBean- Returns:
- the count of messages received
-
getMessagesReceivedFifteenMinuteRate
public double getMessagesReceivedFifteenMinuteRate()
Description copied from interface:GrpcProxyMetricsMBeanReturn the fifteen minute rate of messages received.- Specified by:
getMessagesReceivedFifteenMinuteRatein interfaceGrpcProxyMetricsMBean- Returns:
- the fifteen minute rate of messages received
-
getMessagesReceivedFiveMinuteRate
public double getMessagesReceivedFiveMinuteRate()
Description copied from interface:GrpcProxyMetricsMBeanReturn the five minute rate of messages received.- Specified by:
getMessagesReceivedFiveMinuteRatein interfaceGrpcProxyMetricsMBean- Returns:
- the five minute rate of messages received
-
getMessagesReceivedOneMinuteRate
public double getMessagesReceivedOneMinuteRate()
Description copied from interface:GrpcProxyMetricsMBeanReturn the one minute rate of messages received.- Specified by:
getMessagesReceivedOneMinuteRatein interfaceGrpcProxyMetricsMBean- Returns:
- the one minute rate of messages received
-
getMessagesReceivedMeanRate
public double getMessagesReceivedMeanRate()
Description copied from interface:GrpcProxyMetricsMBeanReturn the mean rate of messages received.- Specified by:
getMessagesReceivedMeanRatein interfaceGrpcProxyMetricsMBean- Returns:
- the mean rate of messages received
-
getResponsesSentCount
public long getResponsesSentCount()
Description copied from interface:GrpcProxyMetricsMBeanReturn the count of responses sent.- Specified by:
getResponsesSentCountin interfaceGrpcProxyMetricsMBean- Returns:
- the count of responses sent
-
getResponsesSentFifteenMinuteRate
public double getResponsesSentFifteenMinuteRate()
Description copied from interface:GrpcProxyMetricsMBeanReturn the fifteen minute rate of responses sent.- Specified by:
getResponsesSentFifteenMinuteRatein interfaceGrpcProxyMetricsMBean- Returns:
- the fifteen minute rate of responses sent
-
getResponsesSentFiveMinuteRate
public double getResponsesSentFiveMinuteRate()
Description copied from interface:GrpcProxyMetricsMBeanReturn the five minute rate of responses sent.- Specified by:
getResponsesSentFiveMinuteRatein interfaceGrpcProxyMetricsMBean- Returns:
- the five minute rate of responses sent
-
getResponsesSentOneMinuteRate
public double getResponsesSentOneMinuteRate()
Description copied from interface:GrpcProxyMetricsMBeanReturn the one minute rate of responses sent.- Specified by:
getResponsesSentOneMinuteRatein interfaceGrpcProxyMetricsMBean- Returns:
- the one minute rate of responses sent
-
getResponsesSentMeanRate
public double getResponsesSentMeanRate()
Description copied from interface:GrpcProxyMetricsMBeanReturn the mean rate of responses sent.- Specified by:
getResponsesSentMeanRatein interfaceGrpcProxyMetricsMBean- Returns:
- the mean rate of responses sent
-
getTaskBacklog
public int getTaskBacklog()
Description copied from interface:GrpcProxyMetricsMBeanReturn the number of tasks that have been added to the pool, but not yet scheduled for execution.- Specified by:
getTaskBacklogin 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:GrpcProxyMetricsMBeanReturns the maximum number of daemon threads that the pool can create.- Specified by:
getDaemonCountMaxin interfaceGrpcProxyMetricsMBean- Returns:
- the maximum number of daemon threads that the pool can create
-
setDaemonCountMax
public void setDaemonCountMax(int count)
Description copied from interface:GrpcProxyMetricsMBeanSet the maximum daemon pool thread count.- Specified by:
setDaemonCountMaxin interfaceGrpcProxyMetricsMBean- Parameters:
count- the maximum daemon pool thread count
-
getDaemonCountMin
public int getDaemonCountMin()
Description copied from interface:GrpcProxyMetricsMBeanReturns the minimum number of daemon threads that the pool should have.- Specified by:
getDaemonCountMinin interfaceGrpcProxyMetricsMBean- Returns:
- the minimum number of daemon threads that the pool should have
-
setDaemonCountMin
public void setDaemonCountMin(int count)
Description copied from interface:GrpcProxyMetricsMBeanSet the minimum daemon pool thread count.- Specified by:
setDaemonCountMinin interfaceGrpcProxyMetricsMBean- Parameters:
count- the minimum daemon pool thread count
-
getDaemonCount
public int getDaemonCount()
Description copied from interface:GrpcProxyMetricsMBeanReturn 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:
getDaemonCountin interfaceGrpcProxyMetricsMBean- Returns:
- the number of Daemon threads that exist
-
getAbandonedThreadCount
public int getAbandonedThreadCount()
Description copied from interface:GrpcProxyMetricsMBeanReturn the total number of abandoned Daemon threads.Note: this property is purposely not reset when stats are reset.
- Specified by:
getAbandonedThreadCountin interfaceGrpcProxyMetricsMBean- Returns:
- the total number of abandoned Daemon threads
-
getTaskActiveMillis
public long getTaskActiveMillis()
Description copied from interface:GrpcProxyMetricsMBeanReturn 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:
getTaskActiveMillisin 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:GrpcProxyMetricsMBeanReturn the total number of currently executing hung tasks.Note: this property is purposely not reset when stats are reset.
- Specified by:
getHungTaskCountin interfaceGrpcProxyMetricsMBean- Returns:
- the total number of currently executing hung tasks
-
getHungTaskDuration
public long getHungTaskDuration()
Description copied from interface:GrpcProxyMetricsMBeanReturn the longest currently executing hung task duration (in milliseconds).Note: this property is purposely not reset when stats are reset.
- Specified by:
getHungTaskDurationin interfaceGrpcProxyMetricsMBean- Returns:
- the longest currently executing hung task duration (in milliseconds)
-
getLastResetMillis
public long getLastResetMillis()
Description copied from interface:GrpcProxyMetricsMBeanReturn the last time stats were reset.- Specified by:
getLastResetMillisin interfaceGrpcProxyMetricsMBean- Returns:
- the last time stats were reset
-
getLastResizeMillis
public long getLastResizeMillis()
Description copied from interface:GrpcProxyMetricsMBeanReturn the last time the daemon pool was resized.- Specified by:
getLastResizeMillisin interfaceGrpcProxyMetricsMBean- Returns:
- the last time the daemon pool was resized
-
getTaskAddCount
public long getTaskAddCount()
Description copied from interface:GrpcProxyMetricsMBeanReturn the total number of tasks added to the pool since the last time the statistics were reset.- Specified by:
getTaskAddCountin 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:GrpcProxyMetricsMBeanReturn the total number of tasks executed by Daemon threads since the last time the statistics were reset.- Specified by:
getTaskCountin 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:GrpcProxyMetricsMBeanReturn the maximum backlog value since the last time the statistics were reset.- Specified by:
getMaxTaskBacklogin interfaceGrpcProxyMetricsMBean- Returns:
- the maximum backlog value since the last time the statistics were reset
-
getTaskTimeoutCount
public int getTaskTimeoutCount()
Description copied from interface:GrpcProxyMetricsMBeanReturn the total number of timed-out tasks since the last time the statistics were reset.- Specified by:
getTaskTimeoutCountin 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:GrpcProxyMetricsMBeanReturn the default timeout value for PriorityTasks that don't explicitly specify the execution timeout value.- Specified by:
getTaskTimeoutin 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.
-
-