public class ClusterMetricsMXBeanImpl extends Object implements ClusterMetricsMXBean
| Constructor and Description |
|---|
ClusterMetricsMXBeanImpl(ClusterGroup cluster,
GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
attributeNames() |
Set<String> |
attributeValues(String attrName) |
int |
getActiveBaselineNodes()
Get count of active baseline nodes.
|
float |
getAverageActiveJobs()
Gets average number of active jobs concurrently executing on the node.
|
float |
getAverageCancelledJobs()
Gets average number of cancelled jobs this node ever had running
concurrently.
|
double |
getAverageCpuLoad()
Gets average of CPU load values over all metrics kept in the history.
|
double |
getAverageJobExecuteTime()
Gets average time a job takes to execute on the node.
|
double |
getAverageJobWaitTime()
Gets average time jobs spend waiting in the queue to be executed.
|
float |
getAverageRejectedJobs()
Gets average number of jobs this node rejects during collision resolution operations.
|
float |
getAverageWaitingJobs()
Gets average number of waiting jobs this node had queued.
|
float |
getBusyTimePercentage()
Gets percentage of time this node is busy executing jobs vs. idling.
|
int |
getCurrentActiveJobs()
Gets number of currently active jobs concurrently executing on the node.
|
int |
getCurrentCancelledJobs()
Gets number of cancelled jobs that are still running.
|
double |
getCurrentCpuLoad()
Returns the CPU usage in
[0, 1] range. |
int |
getCurrentDaemonThreadCount()
Returns the current number of live daemon threads.
|
double |
getCurrentGcCpuLoad()
Returns average time spent in CG since the last update.
|
long |
getCurrentIdleTime()
Gets time this node spend idling since executing last job.
|
long |
getCurrentJobExecuteTime()
Gets longest time a current job has been executing for.
|
long |
getCurrentJobWaitTime()
Gets current time an oldest jobs has spent waiting to be executed.
|
long |
getCurrentPmeDuration()
Gets execution duration for current partition map exchange in milliseconds.
|
int |
getCurrentRejectedJobs()
Gets number of jobs rejected after more recent collision resolution operation.
|
int |
getCurrentThreadCount()
Returns the current number of live threads including both
daemon and non-daemon threads.
|
int |
getCurrentWaitingJobs()
Gets number of queued jobs currently waiting to be executed.
|
long |
getHeapMemoryCommitted()
Returns the amount of heap memory in bytes that is committed for
the JVM to use.
|
long |
getHeapMemoryInitialized()
Returns the amount of heap memory in bytes that the JVM
initially requests from the operating system for memory management.
|
long |
getHeapMemoryMaximum()
Returns the maximum amount of heap memory in bytes that can be
used for memory management.
|
long |
getHeapMemoryTotal()
Returns the total amount of heap memory in bytes.
|
long |
getHeapMemoryUsed()
Returns the current heap size that is used for object allocation.
|
float |
getIdleTimePercentage()
Gets percentage of time this node is idling vs. executing jobs.
|
long |
getLastDataVersion()
In-Memory Data Grid assigns incremental versions to all cache operations.
|
long |
getLastUpdateTime()
Gets last update time of this node metrics.
|
int |
getMaximumActiveJobs()
Gets maximum number of jobs that ever ran concurrently on this node.
|
int |
getMaximumCancelledJobs()
Gets maximum number of cancelled jobs this node ever had running
concurrently.
|
long |
getMaximumJobExecuteTime()
Gets time it took to execute the longest job on the node.
|
long |
getMaximumJobWaitTime()
Gets maximum time a job ever spent waiting in a queue to be executed.
|
int |
getMaximumRejectedJobs()
Gets maximum number of jobs rejected at once during a single collision resolution
operation.
|
int |
getMaximumThreadCount()
Returns the maximum live thread count since the JVM
started or peak was reset.
|
int |
getMaximumWaitingJobs()
Gets maximum number of waiting jobs this node had.
|
long |
getNodeStartTime()
Returns the start time of grid node in milliseconds.
|
long |
getNonHeapMemoryCommitted()
Returns the amount of non-heap memory in bytes that is committed for
the JVM to use.
|
long |
getNonHeapMemoryInitialized()
Returns the amount of non-heap memory in bytes that the JVM
initially requests from the operating system for memory management.
|
long |
getNonHeapMemoryMaximum()
Returns the maximum amount of non-heap memory in bytes that can be
used for memory management.
|
long |
getNonHeapMemoryTotal()
Returns the total amount of non-heap memory in bytes that can be
used for memory management.
|
long |
getNonHeapMemoryUsed()
Returns the current non-heap memory size that is used by Java VM.
|
int |
getOutboundMessagesQueueSize()
Gets outbound messages queue size.
|
long |
getReceivedBytesCount()
Gets received bytes count.
|
int |
getReceivedMessagesCount()
Gets received messages count.
|
long |
getSentBytesCount()
Gets sent bytes count.
|
int |
getSentMessagesCount()
Gets sent messages count.
|
long |
getStartTime()
Returns the start time of the JVM in milliseconds.
|
long |
getTopologyVersion()
Get current topology version.
|
int |
getTotalBaselineNodes()
Get count of total baseline nodes.
|
long |
getTotalBusyTime()
Gets total time this node spent executing jobs.
|
int |
getTotalCancelledJobs()
Gets number of cancelled jobs since node startup.
|
int |
getTotalClientNodes()
Get count of client nodes.
|
int |
getTotalCpus()
Returns the number of CPUs available to the Java Virtual Machine.
|
int |
getTotalExecutedJobs()
Gets total number of jobs handled by the node since node startup.
|
int |
getTotalExecutedTasks()
Gets total number of tasks handled by the node.
|
long |
getTotalIdleTime()
Gets total time this node spent idling (not executing any jobs).
|
long |
getTotalJobsExecutionTime()
Gets total time all finished jobs takes to execute on the node since node startup.
|
int |
getTotalNodes()
Gets total number of nodes.
|
int |
getTotalRejectedJobs()
Gets total number of jobs this node rejects during collision resolution operations since node startup.
|
int |
getTotalServerNodes()
Get count of server nodes.
|
long |
getTotalStartedThreadCount()
Returns the total number of threads created and also started
since the JVM started.
|
long |
getUpTime()
Returns the uptime of the JVM in milliseconds.
|
Set<UUID> |
nodeIdsForAttribute(String attrName,
String attrVal,
boolean includeSrvs,
boolean includeClients) |
String |
toString() |
public ClusterMetricsMXBeanImpl(ClusterGroup cluster, GridKernalContext ctx)
cluster - Cluster group to manage.ctx - Kernal context.public int getTotalCpus()
Runtime.availableProcessors()
method.
Note that this value may change during successive invocations of the virtual machine.
getTotalCpus in interface ClusterMetricsgetTotalCpus in interface ClusterMetricsMXBeanpublic float getAverageActiveJobs()
Note: all aggregated metrics like average, minimum, maximum, total, count are calculated over all the metrics kept in history. The history size is set via either one or both of configuration settings:
getAverageActiveJobs in interface ClusterMetricsgetAverageActiveJobs in interface ClusterMetricsMXBeanpublic float getAverageCancelledJobs()
Note: all aggregated metrics like average, minimum, maximum, total, count are calculated over all the metrics kept in history. The history size is set via either one or both of configuration settings:
getAverageCancelledJobs in interface ClusterMetricsgetAverageCancelledJobs in interface ClusterMetricsMXBeanpublic double getAverageJobExecuteTime()
Note: all aggregated metrics like average, minimum, maximum, total, count are calculated over all the metrics kept in history. The history size is set via either one or both of configuration settings:
getAverageJobExecuteTime in interface ClusterMetricsgetAverageJobExecuteTime in interface ClusterMetricsMXBeanpublic double getAverageJobWaitTime()
Note: all aggregated metrics like average, minimum, maximum, total, count are calculated over all the metrics kept in history. The history size is set via either one or both of configuration settings:
getAverageJobWaitTime in interface ClusterMetricsgetAverageJobWaitTime in interface ClusterMetricsMXBeanpublic float getAverageRejectedJobs()
Note: all aggregated metrics like average, minimum, maximum, total, count are calculated over all the metrics kept in history. The history size is set via either one or both of grid configuration settings:
getAverageRejectedJobs in interface ClusterMetricsgetAverageRejectedJobs in interface ClusterMetricsMXBeanpublic float getAverageWaitingJobs()
Note: all aggregated metrics like average, minimum, maximum, total, count are calculated over all the metrics kept in history. The history size is set via either one or both of configuration settings:
getAverageWaitingJobs in interface ClusterMetricsgetAverageWaitingJobs in interface ClusterMetricsMXBeanpublic float getBusyTimePercentage()
getBusyTimePercentage in interface ClusterMetricsgetBusyTimePercentage in interface ClusterMetricsMXBean1 and greater than or equal to 0)public int getCurrentActiveJobs()
getCurrentActiveJobs in interface ClusterMetricsgetCurrentActiveJobs in interface ClusterMetricsMXBeanpublic int getCurrentCancelledJobs()
getCurrentCancelledJobs in interface ClusterMetricsgetCurrentCancelledJobs in interface ClusterMetricsMXBeanpublic long getCurrentIdleTime()
getCurrentIdleTime in interface ClusterMetricsgetCurrentIdleTime in interface ClusterMetricsMXBeanpublic long getCurrentJobExecuteTime()
getCurrentJobExecuteTime in interface ClusterMetricsgetCurrentJobExecuteTime in interface ClusterMetricsMXBeanpublic long getCurrentJobWaitTime()
getCurrentJobWaitTime in interface ClusterMetricsgetCurrentJobWaitTime in interface ClusterMetricsMXBeanpublic int getCurrentRejectedJobs()
getCurrentRejectedJobs in interface ClusterMetricsgetCurrentRejectedJobs in interface ClusterMetricsMXBeanpublic int getCurrentWaitingJobs()
getCurrentWaitingJobs in interface ClusterMetricsgetCurrentWaitingJobs in interface ClusterMetricsMXBeanpublic int getTotalExecutedTasks()
Note: all aggregated metrics like average, minimum, maximum, total, count are calculated over all the metrics kept in history. The history size is set via either one or both of configuration settings:
getTotalExecutedTasks in interface ClusterMetricsgetTotalExecutedTasks in interface ClusterMetricsMXBeanpublic int getCurrentDaemonThreadCount()
getCurrentDaemonThreadCount in interface ClusterMetricsgetCurrentDaemonThreadCount in interface ClusterMetricsMXBeanpublic long getHeapMemoryCommitted()
committed heap memory values of all heap memory pools.
Note: this is not an aggregated metric and it's calculated from the time of the node's startup.
getHeapMemoryCommitted in interface ClusterMetricsgetHeapMemoryCommitted in interface ClusterMetricsMXBeanpublic long getHeapMemoryInitialized()
-1 if the initial memory size is undefined.
This value represents a setting of the heap memory for Java VM and is not a sum of all initial heap values for all memory pools.
Note: this is not an aggregated metric and it's calculated from the time of the node's startup.
getHeapMemoryInitialized in interface ClusterMetricsgetHeapMemoryInitialized in interface ClusterMetricsMXBean-1 if undefined.public long getHeapMemoryMaximum()
-1
if the maximum memory size is undefined.
This amount of memory is not guaranteed to be available for memory management if it is greater than the amount of committed memory. The JVM may fail to allocate memory even if the amount of used memory does not exceed this maximum size.
This value represents a setting of the heap memory for Java VM and is not a sum of all initial heap values for all memory pools.
Note: this is not an aggregated metric and it's calculated from the time of the node's startup.
getHeapMemoryMaximum in interface ClusterMetricsgetHeapMemoryMaximum in interface ClusterMetricsMXBean-1 if undefined.public long getHeapMemoryTotal()
-1
if the total memory size is undefined.
This amount of memory is not guaranteed to be available for memory management if it is greater than the amount of committed memory. The JVM may fail to allocate memory even if the amount of used memory does not exceed this maximum size.
This value represents a setting of the heap memory for Java VM and is not a sum of all initial heap values for all memory pools.
Note: this is not an aggregated metric and it's calculated from the time of the node's startup.
getHeapMemoryTotal in interface ClusterMetricsgetHeapMemoryTotal in interface ClusterMetricsMXBean-1 if undefined.public long getHeapMemoryUsed()
used heap memory values of all heap memory pools.
The amount of used memory in the returned is the amount of memory occupied by both live objects and garbage objects that have not been collected, if any.
Note: this is not an aggregated metric and it's calculated from the time of the node's startup.
getHeapMemoryUsed in interface ClusterMetricsgetHeapMemoryUsed in interface ClusterMetricsMXBeanpublic float getIdleTimePercentage()
getIdleTimePercentage in interface ClusterMetricsgetIdleTimePercentage in interface ClusterMetricsMXBean1 and greater than or equal to 0)public long getLastUpdateTime()
getLastUpdateTime in interface ClusterMetricsgetLastUpdateTime in interface ClusterMetricsMXBeanpublic int getMaximumActiveJobs()
ClusterMetrics.getTotalExecutedJobs()
metric and only reflects maximum number of jobs that ran at the same time.
Note: all aggregated metrics like average, minimum, maximum, total, count are calculated over all the metrics kept in history. The history size is set via either one or both of configuration settings:
getMaximumActiveJobs in interface ClusterMetricsgetMaximumActiveJobs in interface ClusterMetricsMXBeanpublic int getMaximumCancelledJobs()
getMaximumCancelledJobs in interface ClusterMetricsgetMaximumCancelledJobs in interface ClusterMetricsMXBeanpublic long getMaximumJobExecuteTime()
Note: all aggregated metrics like average, minimum, maximum, total, count are calculated over all the metrics kept in history. The history size is set via either one or both of configuration settings:
getMaximumJobExecuteTime in interface ClusterMetricsgetMaximumJobExecuteTime in interface ClusterMetricsMXBeanpublic long getMaximumJobWaitTime()
Note: all aggregated metrics like average, minimum, maximum, total, count are calculated over all the metrics kept in history. The history size is set via either one or both of configuration settings:
getMaximumJobWaitTime in interface ClusterMetricsgetMaximumJobWaitTime in interface ClusterMetricsMXBeanpublic int getMaximumRejectedJobs()
Note: all aggregated metrics like average, minimum, maximum, total, count are calculated over all the metrics kept in history. The history size is set via either one or both of configuration settings:
getMaximumRejectedJobs in interface ClusterMetricsgetMaximumRejectedJobs in interface ClusterMetricsMXBeanpublic int getMaximumWaitingJobs()
Note: all aggregated metrics like average, minimum, maximum, total, count are calculated over all the metrics kept in history. The history size is set via either one or both of configuration settings:
getMaximumWaitingJobs in interface ClusterMetricsgetMaximumWaitingJobs in interface ClusterMetricsMXBeanpublic long getNonHeapMemoryCommitted()
committed non-heap memory values of all non-heap memory pools.
Note: this is not an aggregated metric and it's calculated from the time of the node's startup.
getNonHeapMemoryCommitted in interface ClusterMetricsgetNonHeapMemoryCommitted in interface ClusterMetricsMXBeanpublic long getNonHeapMemoryInitialized()
-1 if the initial memory size is undefined.
This value represents a setting of non-heap memory for Java VM and is not a sum of all initial heap values for all memory pools.
Note: this is not an aggregated metric and it's calculated from the time of the node's startup.
getNonHeapMemoryInitialized in interface ClusterMetricsgetNonHeapMemoryInitialized in interface ClusterMetricsMXBean-1 if undefined.public long getNonHeapMemoryMaximum()
-1
if the maximum memory size is undefined.
This amount of memory is not guaranteed to be available for memory management if it is greater than the amount of committed memory. The JVM may fail to allocate memory even if the amount of used memory does not exceed this maximum size.
This value represents a setting of the non-heap memory for Java VM and is not a sum of all initial non-heap values for all memory pools.
Note: this is not an aggregated metric and it's calculated from the time of the node's startup.
getNonHeapMemoryMaximum in interface ClusterMetricsgetNonHeapMemoryMaximum in interface ClusterMetricsMXBean-1 if undefined.public long getNonHeapMemoryTotal()
-1
if the total memory size is undefined.
This amount of memory is not guaranteed to be available for memory management if it is greater than the amount of committed memory. The JVM may fail to allocate memory even if the amount of used memory does not exceed this maximum size.
This value represents a setting of the non-heap memory for Java VM and is not a sum of all initial non-heap values for all memory pools.
Note: this is not an aggregated metric and it's calculated from the time of the node's startup.
getNonHeapMemoryTotal in interface ClusterMetricsgetNonHeapMemoryTotal in interface ClusterMetricsMXBean-1 if undefined.public long getNonHeapMemoryUsed()
used non-heap memory values of all non-heap memory pools.
Note: this is not an aggregated metric and it's calculated from the time of the node's startup.
Note: this is not an aggregated metric and it's calculated from the time of the node's startup.
getNonHeapMemoryUsed in interface ClusterMetricsgetNonHeapMemoryUsed in interface ClusterMetricsMXBeanpublic int getMaximumThreadCount()
Note: this is not an aggregated metric and it's calculated from the time of the node's startup.
getMaximumThreadCount in interface ClusterMetricsgetMaximumThreadCount in interface ClusterMetricsMXBeanpublic long getStartTime()
getStartTime in interface ClusterMetricsgetStartTime in interface ClusterMetricsMXBeanpublic long getNodeStartTime()
getNodeStartTime in interface ClusterMetricsgetNodeStartTime in interface ClusterMetricsMXBeanpublic double getCurrentCpuLoad()
[0, 1] range.
The exact way how this number is calculated depends on SPI implementation.
If the CPU usage is not available, a negative value is returned.
This method is designed to provide a hint about the system load and may be queried frequently. The load average may be unavailable on some platform where it is expensive to implement this method.
getCurrentCpuLoad in interface ClusterMetricsgetCurrentCpuLoad in interface ClusterMetricsMXBean[0, 1] range.
Negative value if not available.public double getAverageCpuLoad()
Note: all aggregated metrics like average, minimum, maximum, total, count are calculated over all the metrics kept in history. The history size is set via either one or both of configuration settings:
getAverageCpuLoad in interface ClusterMetricsgetAverageCpuLoad in interface ClusterMetricsMXBean[0, 1] range over all metrics kept
in the history.public double getCurrentGcCpuLoad()
getCurrentGcCpuLoad in interface ClusterMetricsgetCurrentGcCpuLoad in interface ClusterMetricsMXBeanpublic int getCurrentThreadCount()
getCurrentThreadCount in interface ClusterMetricsgetCurrentThreadCount in interface ClusterMetricsMXBeanpublic long getTotalBusyTime()
getTotalBusyTime in interface ClusterMetricsgetTotalBusyTime in interface ClusterMetricsMXBeanpublic int getTotalCancelledJobs()
Note: Unlike most of other aggregation metrics this metric is not calculated over history but over the entire node life.
getTotalCancelledJobs in interface ClusterMetricsgetTotalCancelledJobs in interface ClusterMetricsMXBeanpublic int getTotalExecutedJobs()
Note: Unlike most of other aggregation metrics this metric is not calculated over history but over the entire node life.
getTotalExecutedJobs in interface ClusterMetricsgetTotalExecutedJobs in interface ClusterMetricsMXBeanpublic long getTotalJobsExecutionTime()
Note: Unlike most of other aggregation metrics this metric is not calculated over history but over the entire node life.
getTotalJobsExecutionTime in interface ClusterMetricsgetTotalJobsExecutionTime in interface ClusterMetricsMXBeanpublic long getTotalIdleTime()
getTotalIdleTime in interface ClusterMetricsgetTotalIdleTime in interface ClusterMetricsMXBeanpublic int getTotalRejectedJobs()
Note: Unlike most of other aggregation metrics this metric is not calculated over history but over the entire node life.
getTotalRejectedJobs in interface ClusterMetricsgetTotalRejectedJobs in interface ClusterMetricsMXBeanpublic long getTotalStartedThreadCount()
Note: this is not an aggregated metric and it's calculated from the time of the node's startup.
getTotalStartedThreadCount in interface ClusterMetricsgetTotalStartedThreadCount in interface ClusterMetricsMXBeanpublic long getUpTime()
getUpTime in interface ClusterMetricsgetUpTime in interface ClusterMetricsMXBeanpublic long getLastDataVersion()
getLastDataVersion in interface ClusterMetricsgetLastDataVersion in interface ClusterMetricsMXBeanpublic int getSentMessagesCount()
getSentMessagesCount in interface ClusterMetricsgetSentMessagesCount in interface ClusterMetricsMXBeanpublic long getSentBytesCount()
getSentBytesCount in interface ClusterMetricsgetSentBytesCount in interface ClusterMetricsMXBeanpublic int getReceivedMessagesCount()
getReceivedMessagesCount in interface ClusterMetricsgetReceivedMessagesCount in interface ClusterMetricsMXBeanpublic long getReceivedBytesCount()
getReceivedBytesCount in interface ClusterMetricsgetReceivedBytesCount in interface ClusterMetricsMXBeanpublic int getOutboundMessagesQueueSize()
getOutboundMessagesQueueSize in interface ClusterMetricsgetOutboundMessagesQueueSize in interface ClusterMetricsMXBeanpublic int getTotalNodes()
getTotalNodes in interface ClusterMetricsgetTotalNodes in interface ClusterMetricsMXBeanpublic long getCurrentPmeDuration()
getCurrentPmeDuration in interface ClusterMetricsgetCurrentPmeDuration in interface ClusterMetricsMXBean0 if there is no running PME.public int getTotalBaselineNodes()
getTotalBaselineNodes in interface ClusterMetricsMXBeanpublic int getActiveBaselineNodes()
getActiveBaselineNodes in interface ClusterMetricsMXBeanpublic int getTotalServerNodes()
getTotalServerNodes in interface ClusterMetricsMXBeanpublic int getTotalClientNodes()
getTotalClientNodes in interface ClusterMetricsMXBeanpublic long getTopologyVersion()
getTopologyVersion in interface ClusterMetricsMXBeanpublic Set<String> attributeNames()
attributeNames in interface ClusterMetricsMXBeanpublic Set<String> attributeValues(String attrName)
attributeValues in interface ClusterMetricsMXBeanattrName - Attribute name.public Set<UUID> nodeIdsForAttribute(String attrName, String attrVal, boolean includeSrvs, boolean includeClients)
nodeIdsForAttribute in interface ClusterMetricsMXBeanattrName - Attribute name.attrVal - Attribute value.includeSrvs - Include server nodes.includeClients - Include client nodes.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023