Interface ClusterMetricsMXBean
-
- All Superinterfaces:
ClusterMetrics
@MXBeanDescription("MBean that provides access to aggregated cluster metrics.") public interface ClusterMetricsMXBean extends ClusterMetrics
Cluster metrics MBean.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<String>attributeNames()Set<String>attributeValues(String attrName)intgetActiveBaselineNodes()Get count of active baseline nodes.floatgetAverageActiveJobs()Gets average number of active jobs concurrently executing on the node.floatgetAverageCancelledJobs()Gets average number of cancelled jobs this node ever had running concurrently.doublegetAverageCpuLoad()Gets average of CPU load values over all metrics kept in the history.doublegetAverageJobExecuteTime()Gets average time a job takes to execute on the node.doublegetAverageJobWaitTime()Gets average time jobs spend waiting in the queue to be executed.floatgetAverageRejectedJobs()Gets average number of jobs this node rejects during collision resolution operations.floatgetAverageWaitingJobs()Gets average number of waiting jobs this node had queued.floatgetBusyTimePercentage()Gets percentage of time this node is busy executing jobs vs. idling.intgetCurrentActiveJobs()Gets number of currently active jobs concurrently executing on the node.intgetCurrentCancelledJobs()Gets number of cancelled jobs that are still running.doublegetCurrentCpuLoad()Returns the CPU usage in[0, 1]range.intgetCurrentDaemonThreadCount()Returns the current number of live daemon threads.doublegetCurrentGcCpuLoad()Returns average time spent in CG since the last update.longgetCurrentIdleTime()Gets time this node spend idling since executing last job.longgetCurrentJobExecuteTime()Gets longest time a current job has been executing for.longgetCurrentJobWaitTime()Gets current time an oldest jobs has spent waiting to be executed.longgetCurrentPmeDuration()Gets execution duration for current partition map exchange in milliseconds.intgetCurrentRejectedJobs()Gets number of jobs rejected after more recent collision resolution operation.intgetCurrentThreadCount()Returns the current number of live threads including both daemon and non-daemon threads.intgetCurrentWaitingJobs()Gets number of queued jobs currently waiting to be executed.longgetHeapMemoryCommitted()Returns the amount of heap memory in bytes that is committed for the JVM to use.longgetHeapMemoryInitialized()Returns the amount of heap memory in bytes that the JVM initially requests from the operating system for memory management.longgetHeapMemoryMaximum()Returns the maximum amount of heap memory in bytes that can be used for memory management.longgetHeapMemoryTotal()Returns the total amount of heap memory in bytes.longgetHeapMemoryUsed()Returns the current heap size that is used for object allocation.floatgetIdleTimePercentage()Gets percentage of time this node is idling vs. executing jobs.longgetLastDataVersion()In-Memory Data Grid assigns incremental versions to all cache operations.longgetLastUpdateTime()Gets last update time of this node metrics.intgetMaximumActiveJobs()Gets maximum number of jobs that ever ran concurrently on this node.intgetMaximumCancelledJobs()Gets maximum number of cancelled jobs this node ever had running concurrently.longgetMaximumJobExecuteTime()Gets time it took to execute the longest job on the node.longgetMaximumJobWaitTime()Gets maximum time a job ever spent waiting in a queue to be executed.intgetMaximumRejectedJobs()Gets maximum number of jobs rejected at once during a single collision resolution operation.intgetMaximumThreadCount()Returns the maximum live thread count since the JVM started or peak was reset.intgetMaximumWaitingJobs()Gets maximum number of waiting jobs this node had.longgetNodeStartTime()Returns the start time of grid node in milliseconds.longgetNonHeapMemoryCommitted()Returns the amount of non-heap memory in bytes that is committed for the JVM to use.longgetNonHeapMemoryInitialized()Returns the amount of non-heap memory in bytes that the JVM initially requests from the operating system for memory management.longgetNonHeapMemoryMaximum()Returns the maximum amount of non-heap memory in bytes that can be used for memory management.longgetNonHeapMemoryTotal()Returns the total amount of non-heap memory in bytes that can be used for memory management.longgetNonHeapMemoryUsed()Returns the current non-heap memory size that is used by Java VM.intgetOutboundMessagesQueueSize()Gets outbound messages queue size.longgetReceivedBytesCount()Gets received bytes count.intgetReceivedMessagesCount()Gets received messages count.longgetSentBytesCount()Gets sent bytes count.intgetSentMessagesCount()Gets sent messages count.longgetStartTime()Returns the start time of the JVM in milliseconds.longgetTopologyVersion()Get current topology version.intgetTotalBaselineNodes()Get count of total baseline nodes.longgetTotalBusyTime()Gets total time this node spent executing jobs.intgetTotalCancelledJobs()Gets number of cancelled jobs since node startup.intgetTotalClientNodes()Get count of client nodes.intgetTotalCpus()Returns the number of CPUs available to the Java Virtual Machine.intgetTotalExecutedJobs()Gets total number of jobs handled by the node since node startup.intgetTotalExecutedTasks()Gets total number of tasks handled by the node.longgetTotalIdleTime()Gets total time this node spent idling (not executing any jobs).longgetTotalJobsExecutionTime()Gets total time all finished jobs takes to execute on the node since node startup.intgetTotalNodes()Gets total number of nodes.intgetTotalRejectedJobs()Gets total number of jobs this node rejects during collision resolution operations since node startup.intgetTotalServerNodes()Get count of server nodes.longgetTotalStartedThreadCount()Returns the total number of threads created and also started since the JVM started.longgetUpTime()Returns the uptime of the JVM in milliseconds.Set<UUID>nodeIdsForAttribute(String attrName, String attrVal, boolean includeSrvs, boolean includeClients)
-
-
-
Method Detail
-
getLastUpdateTime
@MXBeanDescription("Last update time of this node metrics.") long getLastUpdateTime()
Gets last update time of this node metrics.- Specified by:
getLastUpdateTimein interfaceClusterMetrics- Returns:
- Last update time.
-
getMaximumActiveJobs
@MXBeanDescription("Maximum number of jobs that ever ran concurrently on this node.") int getMaximumActiveJobs()
Gets maximum number of jobs that ever ran concurrently on this node. Note that this different fromClusterMetrics.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:
- Specified by:
getMaximumActiveJobsin interfaceClusterMetrics- Returns:
- Maximum number of jobs that ever ran concurrently on this node.
-
getCurrentActiveJobs
@MXBeanDescription("Number of currently active jobs concurrently executing on the node.") int getCurrentActiveJobs()
Gets number of currently active jobs concurrently executing on the node.- Specified by:
getCurrentActiveJobsin interfaceClusterMetrics- Returns:
- Number of currently active jobs concurrently executing on the node.
-
getAverageActiveJobs
@MXBeanDescription("Average number of active jobs concurrently executing on the node.") float getAverageActiveJobs()
Gets average number of active jobs concurrently executing on the node.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:
- Specified by:
getAverageActiveJobsin interfaceClusterMetrics- Returns:
- Average number of active jobs.
-
getMaximumWaitingJobs
@MXBeanDescription("Maximum number of waiting jobs this node had.") int getMaximumWaitingJobs()
Gets maximum number of waiting jobs this node had.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:
- Specified by:
getMaximumWaitingJobsin interfaceClusterMetrics- Returns:
- Maximum number of waiting jobs.
-
getCurrentWaitingJobs
@MXBeanDescription("Number of queued jobs currently waiting to be executed.") int getCurrentWaitingJobs()
Gets number of queued jobs currently waiting to be executed.- Specified by:
getCurrentWaitingJobsin interfaceClusterMetrics- Returns:
- Number of queued jobs currently waiting to be executed.
-
getAverageWaitingJobs
@MXBeanDescription("Average number of waiting jobs this node had queued.") float getAverageWaitingJobs()
Gets average number of waiting jobs this node had queued.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:
- Specified by:
getAverageWaitingJobsin interfaceClusterMetrics- Returns:
- Average number of waiting jobs.
-
getMaximumRejectedJobs
@MXBeanDescription("Maximum number of jobs rejected at once during a single collision resolution operation.") int getMaximumRejectedJobs()
Gets maximum number of jobs rejected at once during a single collision resolution operation.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:
- Specified by:
getMaximumRejectedJobsin interfaceClusterMetrics- Returns:
- Maximum number of jobs rejected at once.
-
getCurrentRejectedJobs
@MXBeanDescription("Number of jobs rejected after more recent collision resolution operation.") int getCurrentRejectedJobs()
Gets number of jobs rejected after more recent collision resolution operation.- Specified by:
getCurrentRejectedJobsin interfaceClusterMetrics- Returns:
- Number of jobs rejected after more recent collision resolution operation.
-
getAverageRejectedJobs
@MXBeanDescription("Average number of jobs this node rejects during collision resolution operations.") float getAverageRejectedJobs()
Gets average number of jobs this node rejects during collision resolution operations.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:
- Specified by:
getAverageRejectedJobsin interfaceClusterMetrics- Returns:
- Average number of jobs this node rejects during collision resolution operations.
-
getTotalRejectedJobs
@MXBeanDescription("Total number of jobs this node rejects during collision resolution operations since node startup.") int getTotalRejectedJobs()
Gets total number of jobs this node rejects during collision resolution operations since node startup.Note: Unlike most of other aggregation metrics this metric is not calculated over history but over the entire node life.
- Specified by:
getTotalRejectedJobsin interfaceClusterMetrics- Returns:
- Total number of jobs this node rejects during collision resolution operations since node startup.
-
getMaximumCancelledJobs
@MXBeanDescription("Maximum number of cancelled jobs this node ever had running concurrently.") int getMaximumCancelledJobs()
Gets maximum number of cancelled jobs this node ever had running concurrently.- Specified by:
getMaximumCancelledJobsin interfaceClusterMetrics- Returns:
- Maximum number of cancelled jobs.
-
getCurrentCancelledJobs
@MXBeanDescription("Number of cancelled jobs that are still running.") int getCurrentCancelledJobs()
Gets number of cancelled jobs that are still running. Just like regular java threads, jobs will receive cancel notification, but it's ultimately up to the job itself to gracefully exit.- Specified by:
getCurrentCancelledJobsin interfaceClusterMetrics- Returns:
- Number of cancelled jobs that are still running.
-
getAverageCancelledJobs
@MXBeanDescription("Average number of cancelled jobs this node ever had running concurrently.") float getAverageCancelledJobs()
Gets average number of cancelled jobs this node ever had running concurrently.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:
- Specified by:
getAverageCancelledJobsin interfaceClusterMetrics- Returns:
- Average number of cancelled jobs.
-
getTotalCancelledJobs
@MXBeanDescription("Total number of cancelled jobs since node startup.") int getTotalCancelledJobs()
Gets number of cancelled jobs since node startup.Note: Unlike most of other aggregation metrics this metric is not calculated over history but over the entire node life.
- Specified by:
getTotalCancelledJobsin interfaceClusterMetrics- Returns:
- Total number of cancelled jobs since node startup.
-
getTotalExecutedJobs
@MXBeanDescription("Total number of jobs handled by the node.") int getTotalExecutedJobs()
Gets total number of jobs handled by the node since node startup.Note: Unlike most of other aggregation metrics this metric is not calculated over history but over the entire node life.
- Specified by:
getTotalExecutedJobsin interfaceClusterMetrics- Returns:
- Total number of jobs handled by the node since node startup.
-
getTotalJobsExecutionTime
@MXBeanDescription("Total time all finished jobs takes to execute on the node.") long getTotalJobsExecutionTime()
Gets total time all finished jobs takes to execute on the node since node startup.Note: Unlike most of other aggregation metrics this metric is not calculated over history but over the entire node life.
- Specified by:
getTotalJobsExecutionTimein interfaceClusterMetrics- Returns:
- Total jobs execution time.
-
getMaximumJobWaitTime
@MXBeanDescription("Maximum time a job ever spent waiting in a queue to be executed.") long getMaximumJobWaitTime()
Gets maximum time a job ever spent waiting in a queue to be executed.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:
- Specified by:
getMaximumJobWaitTimein interfaceClusterMetrics- Returns:
- Maximum waiting time.
-
getCurrentJobWaitTime
@MXBeanDescription("Current wait time of oldest job.") long getCurrentJobWaitTime()
Gets current time an oldest jobs has spent waiting to be executed.- Specified by:
getCurrentJobWaitTimein interfaceClusterMetrics- Returns:
- Current wait time of oldest job.
-
getAverageJobWaitTime
@MXBeanDescription("Average time jobs spend waiting in the queue to be executed.") double getAverageJobWaitTime()
Gets average time jobs spend waiting in the queue to be executed.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:
- Specified by:
getAverageJobWaitTimein interfaceClusterMetrics- Returns:
- Average job wait time.
-
getMaximumJobExecuteTime
@MXBeanDescription("Time it took to execute the longest job on the node.") long getMaximumJobExecuteTime()
Gets time it took to execute the longest job on the node.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:
- Specified by:
getMaximumJobExecuteTimein interfaceClusterMetrics- Returns:
- Time it took to execute the longest job on the node.
-
getCurrentJobExecuteTime
@MXBeanDescription("Longest time a current job has been executing for.") long getCurrentJobExecuteTime()
Gets longest time a current job has been executing for.- Specified by:
getCurrentJobExecuteTimein interfaceClusterMetrics- Returns:
- Longest time a current job has been executing for.
-
getAverageJobExecuteTime
@MXBeanDescription("Average time a job takes to execute on the node.") double getAverageJobExecuteTime()
Gets average time a job takes to execute on the node.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:
- Specified by:
getAverageJobExecuteTimein interfaceClusterMetrics- Returns:
- Average job execution time.
-
getTotalExecutedTasks
@MXBeanDescription("Total number of tasks handled by the node.") int getTotalExecutedTasks()
Gets total number of tasks handled by the node.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:
- Specified by:
getTotalExecutedTasksin interfaceClusterMetrics- Returns:
- Total number of jobs handled by the node.
-
getTotalBusyTime
@MXBeanDescription("Total time this node spent executing jobs.") long getTotalBusyTime()
Gets total time this node spent executing jobs.- Specified by:
getTotalBusyTimein interfaceClusterMetrics- Returns:
- Total time this node spent executing jobs.
-
getTotalIdleTime
@MXBeanDescription("Total time this node spent idling (not executing any jobs).") long getTotalIdleTime()
Gets total time this node spent idling (not executing any jobs).- Specified by:
getTotalIdleTimein interfaceClusterMetrics- Returns:
- Gets total time this node spent idling.
-
getCurrentIdleTime
@MXBeanDescription("Time this node spend idling since executing last job.") long getCurrentIdleTime()
Gets time this node spend idling since executing last job.- Specified by:
getCurrentIdleTimein interfaceClusterMetrics- Returns:
- Time this node spend idling since executing last job.
-
getBusyTimePercentage
@MXBeanDescription("Percentage of time this node is busy executing jobs vs. idling.") float getBusyTimePercentage()
Gets percentage of time this node is busy executing jobs vs. idling.- Specified by:
getBusyTimePercentagein interfaceClusterMetrics- Returns:
- Percentage of time this node is busy (value is less than
or equal to
1and greater than or equal to0)
-
getIdleTimePercentage
@MXBeanDescription("Percentage of time this node is idling vs. executing jobs.") float getIdleTimePercentage()
Gets percentage of time this node is idling vs. executing jobs.- Specified by:
getIdleTimePercentagein interfaceClusterMetrics- Returns:
- Percentage of time this node is idle (value is less than
or equal to
1and greater than or equal to0)
-
getTotalCpus
@MXBeanDescription("The number of CPUs available to the Java Virtual Machine.") int getTotalCpus()
Returns the number of CPUs available to the Java Virtual Machine. This method is equivalent to theRuntime.availableProcessors()method.Note that this value may change during successive invocations of the virtual machine.
- Specified by:
getTotalCpusin interfaceClusterMetrics- Returns:
- The number of processors available to the virtual machine, never smaller than one.
-
getCurrentCpuLoad
@MXBeanDescription("The system load average; or a negative value if not available.") double getCurrentCpuLoad()
Returns the CPU usage in[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.
- Specified by:
getCurrentCpuLoadin interfaceClusterMetrics- Returns:
- The estimated CPU usage in
[0, 1]range. Negative value if not available.
-
getAverageCpuLoad
@MXBeanDescription("Average of CPU load values over all metrics kept in the history.") double getAverageCpuLoad()
Gets average of CPU load values over all metrics kept in the history.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:
- Specified by:
getAverageCpuLoadin interfaceClusterMetrics- Returns:
- Average of CPU load value in
[0, 1]range over all metrics kept in the history.
-
getCurrentGcCpuLoad
@MXBeanDescription("Average time spent in GC since the last update.") double getCurrentGcCpuLoad()
Returns average time spent in CG since the last update.- Specified by:
getCurrentGcCpuLoadin interfaceClusterMetrics- Returns:
- Average time spent in CG since the last update.
-
getHeapMemoryInitialized
@MXBeanDescription("The initial size of memory in bytes; -1 if undefined.") long getHeapMemoryInitialized()
Returns the amount of heap memory in bytes that the JVM initially requests from the operating system for memory management. This method returns-1if 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.
- Specified by:
getHeapMemoryInitializedin interfaceClusterMetrics- Returns:
- The initial size of memory in bytes;
-1if undefined.
-
getHeapMemoryUsed
@MXBeanDescription("Current heap size that is used for object allocation.") long getHeapMemoryUsed()
Returns the current heap size that is used for object allocation. The heap consists of one or more memory pools. This value is the sum ofusedheap 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.
- Specified by:
getHeapMemoryUsedin interfaceClusterMetrics- Returns:
- Amount of heap memory used.
-
getHeapMemoryCommitted
@MXBeanDescription("The amount of committed memory in bytes.") long getHeapMemoryCommitted()
Returns the amount of heap memory in bytes that is committed for the JVM to use. This amount of memory is guaranteed for the JVM to use. The heap consists of one or more memory pools. This value is the sum ofcommittedheap 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.
- Specified by:
getHeapMemoryCommittedin interfaceClusterMetrics- Returns:
- The amount of committed memory in bytes.
-
getHeapMemoryMaximum
@MXBeanDescription("The maximum amount of memory in bytes; -1 if undefined.") long getHeapMemoryMaximum()
Returns the maximum amount of heap memory in bytes that can be used for memory management. This method returns-1if 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.
- Specified by:
getHeapMemoryMaximumin interfaceClusterMetrics- Returns:
- The maximum amount of memory in bytes;
-1if undefined.
-
getHeapMemoryTotal
@MXBeanDescription("The total amount of memory in bytes; -1 if undefined.") long getHeapMemoryTotal()
Returns the total amount of heap memory in bytes. This method returns-1if 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.
- Specified by:
getHeapMemoryTotalin interfaceClusterMetrics- Returns:
- The total amount of memory in bytes;
-1if undefined.
-
getNonHeapMemoryInitialized
@MXBeanDescription("The initial size of memory in bytes; -1 if undefined.") long getNonHeapMemoryInitialized()
Returns the amount of non-heap memory in bytes that the JVM initially requests from the operating system for memory management. This method returns-1if 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.
- Specified by:
getNonHeapMemoryInitializedin interfaceClusterMetrics- Returns:
- The initial size of memory in bytes;
-1if undefined.
-
getNonHeapMemoryUsed
@MXBeanDescription("Current non-heap memory size that is used by Java VM.") long getNonHeapMemoryUsed()
Returns the current non-heap memory size that is used by Java VM. The non-heap memory consists of one or more memory pools. This value is the sum ofusednon-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.
- Specified by:
getNonHeapMemoryUsedin interfaceClusterMetrics- Returns:
- Amount of none-heap memory used.
-
getNonHeapMemoryCommitted
@MXBeanDescription("Amount of non-heap memory in bytes that is committed for the JVM to use.") long getNonHeapMemoryCommitted()
Returns the amount of non-heap memory in bytes that is committed for the JVM to use. This amount of memory is guaranteed for the JVM to use. The non-heap memory consists of one or more memory pools. This value is the sum ofcommittednon-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.
- Specified by:
getNonHeapMemoryCommittedin interfaceClusterMetrics- Returns:
- The amount of committed memory in bytes.
-
getNonHeapMemoryMaximum
@MXBeanDescription("Maximum amount of non-heap memory in bytes that can be used for memory management. -1 if undefined.") long getNonHeapMemoryMaximum()
Returns the maximum amount of non-heap memory in bytes that can be used for memory management. This method returns-1if 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.
- Specified by:
getNonHeapMemoryMaximumin interfaceClusterMetrics- Returns:
- The maximum amount of memory in bytes;
-1if undefined.
-
getNonHeapMemoryTotal
@MXBeanDescription("Total amount of non-heap memory in bytes that can be used for memory management. -1 if undefined.") long getNonHeapMemoryTotal()
Returns the total amount of non-heap memory in bytes that can be used for memory management. This method returns-1if 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.
- Specified by:
getNonHeapMemoryTotalin interfaceClusterMetrics- Returns:
- The total amount of memory in bytes;
-1if undefined.
-
getUpTime
@MXBeanDescription("Uptime of the JVM in milliseconds.") long getUpTime()
Returns the uptime of the JVM in milliseconds.- Specified by:
getUpTimein interfaceClusterMetrics- Returns:
- Uptime of the JVM in milliseconds.
-
getStartTime
@MXBeanDescription("Start time of the JVM in milliseconds.") long getStartTime()
Returns the start time of the JVM in milliseconds. This method returns the approximate time when the Java virtual machine started.- Specified by:
getStartTimein interfaceClusterMetrics- Returns:
- Start time of the JVM in milliseconds.
-
getCurrentThreadCount
@MXBeanDescription("Current number of live threads.") int getCurrentThreadCount()
Returns the current number of live threads including both daemon and non-daemon threads.- Specified by:
getCurrentThreadCountin interfaceClusterMetrics- Returns:
- Current number of live threads.
-
getMaximumThreadCount
@MXBeanDescription("The peak live thread count.") int getMaximumThreadCount()
Returns the maximum live thread count since the JVM started or peak was reset.Note: this is not an aggregated metric and it's calculated from the time of the node's startup.
- Specified by:
getMaximumThreadCountin interfaceClusterMetrics- Returns:
- The peak live thread count.
-
getTotalStartedThreadCount
@MXBeanDescription("The total number of threads started.") long getTotalStartedThreadCount()
Returns the total number of threads created and also started since the JVM started.Note: this is not an aggregated metric and it's calculated from the time of the node's startup.
- Specified by:
getTotalStartedThreadCountin interfaceClusterMetrics- Returns:
- The total number of threads started.
-
getCurrentDaemonThreadCount
@MXBeanDescription("Current number of live daemon threads.") int getCurrentDaemonThreadCount()
Returns the current number of live daemon threads.- Specified by:
getCurrentDaemonThreadCountin interfaceClusterMetrics- Returns:
- Current number of live daemon threads.
-
getLastDataVersion
@MXBeanDescription("Last data version.") long getLastDataVersion()
In-Memory Data Grid assigns incremental versions to all cache operations. This method provides the latest data version on the node.- Specified by:
getLastDataVersionin interfaceClusterMetrics- Returns:
- Last data version.
-
getSentMessagesCount
@MXBeanDescription("Sent messages count.") int getSentMessagesCount()
Gets sent messages count.- Specified by:
getSentMessagesCountin interfaceClusterMetrics- Returns:
- Sent messages count.
-
getSentBytesCount
@MXBeanDescription("Sent bytes count.") long getSentBytesCount()
Gets sent bytes count.- Specified by:
getSentBytesCountin interfaceClusterMetrics- Returns:
- Sent bytes count.
-
getReceivedMessagesCount
@MXBeanDescription("Received messages count.") int getReceivedMessagesCount()
Gets received messages count.- Specified by:
getReceivedMessagesCountin interfaceClusterMetrics- Returns:
- Received messages count.
-
getReceivedBytesCount
@MXBeanDescription("Received bytes count.") long getReceivedBytesCount()
Gets received bytes count.- Specified by:
getReceivedBytesCountin interfaceClusterMetrics- Returns:
- Received bytes count.
-
getOutboundMessagesQueueSize
@MXBeanDescription("Outbound messages queue size.") int getOutboundMessagesQueueSize()
Gets outbound messages queue size.- Specified by:
getOutboundMessagesQueueSizein interfaceClusterMetrics- Returns:
- Outbound messages queue size.
-
getNodeStartTime
@MXBeanDescription("Start time of the grid node in milliseconds.") long getNodeStartTime()
Returns the start time of grid node in milliseconds. There can be several grid nodes started in one JVM, so JVM start time will be the same for all of them, but node start time will be different.- Specified by:
getNodeStartTimein interfaceClusterMetrics- Returns:
- Start time of the grid node in milliseconds.
-
getTotalNodes
@MXBeanDescription("Total number of nodes.") int getTotalNodes()
Gets total number of nodes.- Specified by:
getTotalNodesin interfaceClusterMetrics- Returns:
- Total number of nodes.
-
getCurrentPmeDuration
@MXBeanDescription("Current PME duration in milliseconds.") long getCurrentPmeDuration()
Gets execution duration for current partition map exchange in milliseconds.- Specified by:
getCurrentPmeDurationin interfaceClusterMetrics- Returns:
- Gets execution duration for current partition map exchange in milliseconds.
0if there is no running PME.
-
getTotalBaselineNodes
@MXBeanDescription("Total baseline nodes count.") int getTotalBaselineNodes()
Get count of total baseline nodes.- Returns:
- Count of total baseline nodes.
-
getActiveBaselineNodes
@MXBeanDescription("Active baseline nodes count.") int getActiveBaselineNodes()
Get count of active baseline nodes.- Returns:
- Count of active baseline nodes.
-
getTotalServerNodes
@MXBeanDescription("Server nodes count.") int getTotalServerNodes()
Get count of server nodes.- Returns:
- Count of server nodes.
-
getTotalClientNodes
@MXBeanDescription("Client nodes count.") int getTotalClientNodes()
Get count of client nodes.- Returns:
- Count of client nodes.
-
getTopologyVersion
@MXBeanDescription("Current topology version.") long getTopologyVersion()
Get current topology version.- Returns:
- Current topology version.
-
attributeNames
@MXBeanDescription("Distinct attribute names for given nodes projection.") Set<String> attributeNames()
- Returns:
- Distinct attribute names for given nodes projection.
-
attributeValues
@MXBeanDescription("Distinct attribute values for given nodes projection.") Set<String> attributeValues(@MXBeanParameter(name="attrName",description="Attribute name.") String attrName)
- Parameters:
attrName- Attribute name.- Returns:
- Distinct attribute values for given nodes projection.
-
nodeIdsForAttribute
@MXBeanDescription("Get node IDs with the given attribute value.") Set<UUID> nodeIdsForAttribute(@MXBeanParameter(name="attrName",description="Attribute name.") String attrName, @MXBeanParameter(name="attrValue",description="Attribute value.") String attrVal, @MXBeanParameter(name="includeSrvs",description="Include server nodes.") boolean includeSrvs, @MXBeanParameter(name="includeClients",description="Include client nodes.") boolean includeClients)
- Parameters:
attrName- Attribute name.attrVal- Attribute value.includeSrvs- Include server nodes.includeClients- Include client nodes.- Returns:
- Node IDs with the given attribute value.
-
-