Class GridClientNodeMetricsAdapter
- java.lang.Object
-
- org.apache.ignite.internal.client.impl.GridClientNodeMetricsAdapter
-
- All Implemented Interfaces:
Serializable,GridClientNodeMetrics
public class GridClientNodeMetricsAdapter extends Object implements GridClientNodeMetrics
Node metrics adapter.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GridClientNodeMetricsAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetAverageActiveJobs()Gets average active jobs.floatgetAverageCancelledJobs()Gets average cancelled jobs.doublegetAverageCpuLoad()Gets average of CPU load values over all metrics kept in the history.doublegetAverageJobExecuteTime()Gets average job execution time.doublegetAverageJobWaitTime()Gets average job wait time.floatgetAverageRejectedJobs()Gets average number of jobs this node rejects.floatgetAverageWaitingJobs()Gets average waiting jobs.floatgetBusyTimePercentage()Gets percentage of time this node is busy executing jobs vs. idling.intgetCurrentActiveJobs()Gets current active jobs.intgetCurrentCancelledJobs()Gets current cancelled jobs.doublegetCurrentCpuLoad()Returns the system load average for the last minute.intgetCurrentDaemonThreadCount()Returns the current number of live daemon threads.doublegetCurrentGcCpuLoad()Returns average CPU spent for GC since the last update.longgetCurrentIdleTime()Gets current idle time.longgetCurrentJobExecuteTime()Gets current job execute time.longgetCurrentJobWaitTime()Gets current job wait time.intgetCurrentRejectedJobs()Gets number of jobs rejected during most recent collision resolution.intgetCurrentThreadCount()Returns the current number of live threads including both daemon and non-daemon threads.intgetCurrentWaitingJobs()Gets current waiting jobs.longgetFileSystemFreeSpace()Returns the number of unallocated bytes in the partition.longgetFileSystemTotalSpace()Returns the size of the partition.longgetFileSystemUsableSpace()Returns the number of bytes available to this virtual machine on the partition.longgetHeapMemoryCommitted()Returns the amount of heap memory in bytes that is committed for the Java virtual machine to use.longgetHeapMemoryInitialized()Returns the amount of heap memory in bytes that the Java virtual machine 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.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.intgetMaximumActiveJobs()Gets max active jobs.intgetMaximumCancelledJobs()Gets maximum cancelled jobs.longgetMaximumJobExecuteTime()Gets maximum job execution time.longgetMaximumJobWaitTime()Gets max job wait time.intgetMaximumRejectedJobs()Gets maximum number of jobs rejected during a single collision resolution event.intgetMaximumThreadCount()Returns the maximum live thread count since the Java virtual machine started or peak was reset.intgetMaximumWaitingJobs()Gets maximum waiting jobs.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 Java virtual machine to use.longgetNonHeapMemoryInitialized()Returns the amount of non-heap memory in bytes that the Java virtual machine 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.longgetNonHeapMemoryUsed()Returns the current non-heap memory size that is used by Java VM.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 Java virtual machine in milliseconds.longgetTotalBusyTime()Gets total busy time.intgetTotalCancelledJobs()Gets total cancelled jobs.intgetTotalCpus()Returns the number of CPUs available to the Java Virtual Machine.intgetTotalExecutedJobs()Gets total active jobs.intgetTotalExecutedTasks()Gets total number of tasks handled by the node.longgetTotalIdleTime()Gets total idle time.intgetTotalRejectedJobs()Gets total number of jobs this node ever rejected.longgetTotalStartedThreadCount()Returns the total number of threads created and also started since the Java virtual machine started.longgetUpTime()Returns the uptime of the Java virtual machine in milliseconds.voidsetAverageActiveJobs(float avgActiveJobs)Sets average active jobs.voidsetAverageCancelledJobs(float avgCancelledJobs)Sets average cancelled jobs.voidsetAverageCpuLoad(double avgLoad)Sets CPU load average over the metrics history.voidsetAverageJobExecuteTime(double avgJobExecTime)Sets average job execution time.voidsetAverageJobWaitTime(double avgJobWaitTime)Sets average job wait time.voidsetAverageRejectedJobs(float avgRejectedJobs)Sets average number of jobs this node rejects.voidsetAverageWaitingJobs(float avgWaitingJobs)Sets average waiting jobs.voidsetCurrentActiveJobs(int curActiveJobs)Sets current active jobs.voidsetCurrentCancelledJobs(int curCancelledJobs)Sets current cancelled jobs.voidsetCurrentCpuLoad(double load)Sets current CPU load.voidsetCurrentDaemonThreadCount(int daemonThreadCnt)Sets daemon thread count.voidsetCurrentGcCpuLoad(double gcLoad)Sets current GC CPU load.voidsetCurrentIdleTime(long curIdleTime)Sets time elapsed since execution of last job.voidsetCurrentJobExecuteTime(long curJobExecTime)Sets current job execute time.voidsetCurrentJobWaitTime(long curJobWaitTime)Sets current job wait time.voidsetCurrentRejectedJobs(int curRejectedJobs)Sets number of jobs rejected during most recent collision resolution.voidsetCurrentThreadCount(int threadCnt)Sets thread count.voidsetCurrentWaitingJobs(int curWaitingJobs)Sets current waiting jobs.voidsetFileSystemFreeSpace(long fileSysFreeSpace)Sets the number of unallocated bytes in the partition.voidsetFileSystemTotalSpace(long fileSysTotalSpace)Sets size of the partition.voidsetFileSystemUsableSpace(long fileSysUsableSpace)Sets the number of bytes available to this virtual machine on the partition.voidsetHeapMemoryCommitted(long heapCommitted)Sets committed heap memory.voidsetHeapMemoryInitialized(long heapInit)Sets heap initial memory.voidsetHeapMemoryMaximum(long heapMax)Sets maximum possible heap memory.voidsetHeapMemoryUsed(long heapUsed)Sets used heap memory.voidsetLastDataVersion(long lastDataVer)Sets last data version.voidsetLastUpdateTime(long lastUpdateTime)Sets last update time.voidsetMaximumActiveJobs(int maxActiveJobs)Sets max active jobs.voidsetMaximumCancelledJobs(int maxCancelledJobs)Sets maximum cancelled jobs.voidsetMaximumJobExecuteTime(long maxJobExecTime)Sets maximum job execution time.voidsetMaximumJobWaitTime(long maxJobWaitTime)Sets max job wait time.voidsetMaximumRejectedJobs(int maxRejectedJobs)Gets maximum number of jobs rejected during a single collision resolution event.voidsetMaximumThreadCount(int peakThreadCnt)Sets peak thread count.voidsetMaximumWaitingJobs(int maxWaitingJobs)Sets maximum waiting jobs.voidsetNodeStartTime(long nodeStartTime)Sets node start time.voidsetNonHeapMemoryCommitted(long nonHeapCommitted)Sets committed non-heap memory.voidsetNonHeapMemoryInitialized(long nonHeapInit)Sets initial non-heap memory.voidsetNonHeapMemoryMaximum(long nonHeapMax)Sets maximum possible non-heap memory.voidsetNonHeapMemoryUsed(long nonHeapUsed)Sets used non-heap memory.voidsetReceivedBytesCount(long rcvdBytesCnt)Sets received bytes count.voidsetReceivedMessagesCount(int rcvdMsgsCnt)Sets received messages count.voidsetSentBytesCount(long sentBytesCnt)Sets sent bytes count.voidsetSentMessagesCount(int sentMsgsCnt)Sets sent messages count.voidsetStartTime(long startTime)Sets VM start time.voidsetTotalCancelledJobs(int totalCancelledJobs)Sets total cancelled jobs.voidsetTotalCpus(int availProcs)Sets available processors.voidsetTotalExecutedJobs(int totalExecutedJobs)Sets total active jobs.voidsetTotalExecutedTasks(int totalExecTasks)Sets total number of tasks handled by the node.voidsetTotalIdleTime(long totalIdleTime)Set total node idle time.voidsetTotalRejectedJobs(int totalRejectedJobs)Sets total number of jobs this node ever rejected.voidsetTotalStartedThreadCount(long startedThreadCnt)Sets started thread count.voidsetUpTime(long upTime)Sets VM up time.StringtoString()
-
-
-
Method Detail
-
getLastUpdateTime
public long getLastUpdateTime()
Gets last update time.- Specified by:
getLastUpdateTimein interfaceGridClientNodeMetrics- Returns:
- Last update time.
-
setLastUpdateTime
public void setLastUpdateTime(long lastUpdateTime)
Sets last update time.- Parameters:
lastUpdateTime- Last update time.
-
getMaximumActiveJobs
public int getMaximumActiveJobs()
Gets max active jobs.- Specified by:
getMaximumActiveJobsin interfaceGridClientNodeMetrics- Returns:
- Max active jobs.
-
setMaximumActiveJobs
public void setMaximumActiveJobs(int maxActiveJobs)
Sets max active jobs.- Parameters:
maxActiveJobs- Max active jobs.
-
getCurrentActiveJobs
public int getCurrentActiveJobs()
Gets current active jobs.- Specified by:
getCurrentActiveJobsin interfaceGridClientNodeMetrics- Returns:
- Current active jobs.
-
setCurrentActiveJobs
public void setCurrentActiveJobs(int curActiveJobs)
Sets current active jobs.- Parameters:
curActiveJobs- Current active jobs.
-
getAverageActiveJobs
public float getAverageActiveJobs()
Gets average active jobs.- Specified by:
getAverageActiveJobsin interfaceGridClientNodeMetrics- Returns:
- Average active jobs.
-
setAverageActiveJobs
public void setAverageActiveJobs(float avgActiveJobs)
Sets average active jobs.- Parameters:
avgActiveJobs- Average active jobs.
-
getMaximumWaitingJobs
public int getMaximumWaitingJobs()
Gets maximum waiting jobs.- Specified by:
getMaximumWaitingJobsin interfaceGridClientNodeMetrics- Returns:
- Maximum active jobs.
-
setMaximumWaitingJobs
public void setMaximumWaitingJobs(int maxWaitingJobs)
Sets maximum waiting jobs.- Parameters:
maxWaitingJobs- Maximum waiting jobs.
-
getCurrentWaitingJobs
public int getCurrentWaitingJobs()
Gets current waiting jobs.- Specified by:
getCurrentWaitingJobsin interfaceGridClientNodeMetrics- Returns:
- Current waiting jobs.
-
setCurrentWaitingJobs
public void setCurrentWaitingJobs(int curWaitingJobs)
Sets current waiting jobs.- Parameters:
curWaitingJobs- Current waiting jobs.
-
getAverageWaitingJobs
public float getAverageWaitingJobs()
Gets average waiting jobs.- Specified by:
getAverageWaitingJobsin interfaceGridClientNodeMetrics- Returns:
- Average waiting jobs.
-
setAverageWaitingJobs
public void setAverageWaitingJobs(float avgWaitingJobs)
Sets average waiting jobs.- Parameters:
avgWaitingJobs- Average waiting jobs.
-
getMaximumRejectedJobs
public int getMaximumRejectedJobs()
Gets maximum number of jobs rejected during a single collision resolution event.- Specified by:
getMaximumRejectedJobsin interfaceGridClientNodeMetrics- Returns:
- Maximum number of jobs rejected during a single collision resolution event.
-
setMaximumRejectedJobs
public void setMaximumRejectedJobs(int maxRejectedJobs)
Gets maximum number of jobs rejected during a single collision resolution event.- Parameters:
maxRejectedJobs- Maximum number of jobs rejected during a single collision resolution event.
-
getCurrentRejectedJobs
public int getCurrentRejectedJobs()
Gets number of jobs rejected during most recent collision resolution.- Specified by:
getCurrentRejectedJobsin interfaceGridClientNodeMetrics- Returns:
- Number of jobs rejected during most recent collision resolution.
-
setCurrentRejectedJobs
public void setCurrentRejectedJobs(int curRejectedJobs)
Sets number of jobs rejected during most recent collision resolution.- Parameters:
curRejectedJobs- Number of jobs rejected during most recent collision resolution.
-
getAverageRejectedJobs
public float getAverageRejectedJobs()
Gets average number of jobs this node rejects.- Specified by:
getAverageRejectedJobsin interfaceGridClientNodeMetrics- Returns:
- Average number of jobs this node rejects.
-
setAverageRejectedJobs
public void setAverageRejectedJobs(float avgRejectedJobs)
Sets average number of jobs this node rejects.- Parameters:
avgRejectedJobs- Average number of jobs this node rejects.
-
getTotalRejectedJobs
public int getTotalRejectedJobs()
Gets total number of jobs this node ever rejected.- Specified by:
getTotalRejectedJobsin interfaceGridClientNodeMetrics- Returns:
- Total number of jobs this node ever rejected.
-
setTotalRejectedJobs
public void setTotalRejectedJobs(int totalRejectedJobs)
Sets total number of jobs this node ever rejected.- Parameters:
totalRejectedJobs- Total number of jobs this node ever rejected.
-
getMaximumCancelledJobs
public int getMaximumCancelledJobs()
Gets maximum cancelled jobs.- Specified by:
getMaximumCancelledJobsin interfaceGridClientNodeMetrics- Returns:
- Maximum cancelled jobs.
-
setMaximumCancelledJobs
public void setMaximumCancelledJobs(int maxCancelledJobs)
Sets maximum cancelled jobs.- Parameters:
maxCancelledJobs- Maximum cancelled jobs.
-
getCurrentCancelledJobs
public int getCurrentCancelledJobs()
Gets current cancelled jobs.- Specified by:
getCurrentCancelledJobsin interfaceGridClientNodeMetrics- Returns:
- Current cancelled jobs.
-
setCurrentCancelledJobs
public void setCurrentCancelledJobs(int curCancelledJobs)
Sets current cancelled jobs.- Parameters:
curCancelledJobs- Current cancelled jobs.
-
getAverageCancelledJobs
public float getAverageCancelledJobs()
Gets average cancelled jobs.- Specified by:
getAverageCancelledJobsin interfaceGridClientNodeMetrics- Returns:
- Average cancelled jobs.
-
setAverageCancelledJobs
public void setAverageCancelledJobs(float avgCancelledJobs)
Sets average cancelled jobs.- Parameters:
avgCancelledJobs- Average cancelled jobs.
-
getTotalExecutedJobs
public int getTotalExecutedJobs()
Gets total active jobs.- Specified by:
getTotalExecutedJobsin interfaceGridClientNodeMetrics- Returns:
- Total active jobs.
-
setTotalExecutedJobs
public void setTotalExecutedJobs(int totalExecutedJobs)
Sets total active jobs.- Parameters:
totalExecutedJobs- Total active jobs.
-
getTotalCancelledJobs
public int getTotalCancelledJobs()
Gets total cancelled jobs.- Specified by:
getTotalCancelledJobsin interfaceGridClientNodeMetrics- Returns:
- Total cancelled jobs.
-
setTotalCancelledJobs
public void setTotalCancelledJobs(int totalCancelledJobs)
Sets total cancelled jobs.- Parameters:
totalCancelledJobs- Total cancelled jobs.
-
getMaximumJobWaitTime
public long getMaximumJobWaitTime()
Gets max job wait time.- Specified by:
getMaximumJobWaitTimein interfaceGridClientNodeMetrics- Returns:
- Max job wait time.
-
setMaximumJobWaitTime
public void setMaximumJobWaitTime(long maxJobWaitTime)
Sets max job wait time.- Parameters:
maxJobWaitTime- Max job wait time.
-
getCurrentJobWaitTime
public long getCurrentJobWaitTime()
Gets current job wait time.- Specified by:
getCurrentJobWaitTimein interfaceGridClientNodeMetrics- Returns:
- Current job wait time.
-
setCurrentJobWaitTime
public void setCurrentJobWaitTime(long curJobWaitTime)
Sets current job wait time.- Parameters:
curJobWaitTime- Current job wait time.
-
getAverageJobWaitTime
public double getAverageJobWaitTime()
Gets average job wait time.- Specified by:
getAverageJobWaitTimein interfaceGridClientNodeMetrics- Returns:
- Average job wait time.
-
setAverageJobWaitTime
public void setAverageJobWaitTime(double avgJobWaitTime)
Sets average job wait time.- Parameters:
avgJobWaitTime- Average job wait time.
-
getMaximumJobExecuteTime
public long getMaximumJobExecuteTime()
Gets maximum job execution time.- Specified by:
getMaximumJobExecuteTimein interfaceGridClientNodeMetrics- Returns:
- Maximum job execution time.
-
setMaximumJobExecuteTime
public void setMaximumJobExecuteTime(long maxJobExecTime)
Sets maximum job execution time.- Parameters:
maxJobExecTime- Maximum job execution time.
-
getCurrentJobExecuteTime
public long getCurrentJobExecuteTime()
Gets current job execute time.- Specified by:
getCurrentJobExecuteTimein interfaceGridClientNodeMetrics- Returns:
- Current job execute time.
-
setCurrentJobExecuteTime
public void setCurrentJobExecuteTime(long curJobExecTime)
Sets current job execute time.- Parameters:
curJobExecTime- Current job execute time.
-
getAverageJobExecuteTime
public double getAverageJobExecuteTime()
Gets average job execution time.- Specified by:
getAverageJobExecuteTimein interfaceGridClientNodeMetrics- Returns:
- Average job execution time.
-
setAverageJobExecuteTime
public void setAverageJobExecuteTime(double avgJobExecTime)
Sets average job execution time.- Parameters:
avgJobExecTime- Average job execution time.
-
getTotalExecutedTasks
public int getTotalExecutedTasks()
Gets total number of tasks handled by the node.- Specified by:
getTotalExecutedTasksin interfaceGridClientNodeMetrics- Returns:
- Total number of jobs handled by the node.
-
setTotalExecutedTasks
public void setTotalExecutedTasks(int totalExecTasks)
Sets total number of tasks handled by the node.- Parameters:
totalExecTasks- Total number of tasks handled by the node.
-
getTotalBusyTime
public long getTotalBusyTime()
Gets total busy time.- Specified by:
getTotalBusyTimein interfaceGridClientNodeMetrics- Returns:
- Total busy time.
-
getTotalIdleTime
public long getTotalIdleTime()
Gets total idle time.- Specified by:
getTotalIdleTimein interfaceGridClientNodeMetrics- Returns:
- Total idle time.
-
setTotalIdleTime
public void setTotalIdleTime(long totalIdleTime)
Set total node idle time.- Parameters:
totalIdleTime- Total node idle time.
-
getCurrentIdleTime
public long getCurrentIdleTime()
Gets current idle time.- Specified by:
getCurrentIdleTimein interfaceGridClientNodeMetrics- Returns:
- Current idle time.
-
setCurrentIdleTime
public void setCurrentIdleTime(long curIdleTime)
Sets time elapsed since execution of last job.- Parameters:
curIdleTime- Time elapsed since execution of last job.
-
getBusyTimePercentage
public float getBusyTimePercentage()
Gets percentage of time this node is busy executing jobs vs. idling.- Specified by:
getBusyTimePercentagein interfaceGridClientNodeMetrics- Returns:
- Percentage of time this node is busy (value is less than
or equal to
1and greater than or equal to0)
-
getIdleTimePercentage
public float getIdleTimePercentage()
Gets percentage of time this node is idling vs. executing jobs.- Specified by:
getIdleTimePercentagein interfaceGridClientNodeMetrics- Returns:
- Percentage of time this node is idle (value is less than
or equal to
1and greater than or equal to0)
-
getTotalCpus
public 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 interfaceGridClientNodeMetrics- Returns:
- The number of processors available to the virtual machine, never smaller than one.
-
getCurrentCpuLoad
public double getCurrentCpuLoad()
Returns the system load average for the last minute. The system load average is the sum of the number of runnable entities queued to the available processors and the number of runnable entities running on the available processors averaged over a period of time. The way in which the load average is calculated is operating system specific but is typically a damped time-dependent average.If the load average 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 interfaceGridClientNodeMetrics- Returns:
- The system load average in
[0, 1]range. Negative value if not available.
-
getAverageCpuLoad
public double getAverageCpuLoad()
Gets average of CPU load values over all metrics kept in the history.- Specified by:
getAverageCpuLoadin interfaceGridClientNodeMetrics- Returns:
- Average of CPU load value in
[0, 1]range over all metrics kept in the history.
-
getCurrentGcCpuLoad
public double getCurrentGcCpuLoad()
Returns average CPU spent for GC since the last update.- Specified by:
getCurrentGcCpuLoadin interfaceGridClientNodeMetrics- Returns:
- Average CPU spent for GC since the last update.
-
getHeapMemoryInitialized
public long getHeapMemoryInitialized()
Returns the amount of heap memory in bytes that the Java virtual machine initially requests from the operating system for memory management. This method returns-1if the initial memory size is undefined.- Specified by:
getHeapMemoryInitializedin interfaceGridClientNodeMetrics- Returns:
- The initial size of memory in bytes;
-1if undefined.
-
getHeapMemoryUsed
public 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 interfaceGridClientNodeMetrics- Returns:
- Amount of heap memory used.
-
getHeapMemoryCommitted
public long getHeapMemoryCommitted()
Returns the amount of heap memory in bytes that is committed for the Java virtual machine to use. This amount of memory is guaranteed for the Java virtual machine 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 interfaceGridClientNodeMetrics- Returns:
- The amount of committed memory in bytes.
-
getHeapMemoryMaximum
public 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 Java virtual machine 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 interfaceGridClientNodeMetrics- Returns:
- The maximum amount of memory in bytes;
-1if undefined.
-
getNonHeapMemoryInitialized
public long getNonHeapMemoryInitialized()
Returns the amount of non-heap memory in bytes that the Java virtual machine 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 interfaceGridClientNodeMetrics- Returns:
- The initial size of memory in bytes;
-1if undefined.
-
getNonHeapMemoryUsed
public 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 interfaceGridClientNodeMetrics- Returns:
- Amount of none-heap memory used.
-
getNonHeapMemoryCommitted
public long getNonHeapMemoryCommitted()
Returns the amount of non-heap memory in bytes that is committed for the Java virtual machine to use. This amount of memory is guaranteed for the Java virtual machine 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 interfaceGridClientNodeMetrics- Returns:
- The amount of committed memory in bytes.
-
getNonHeapMemoryMaximum
public 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 Java virtual machine 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 interfaceGridClientNodeMetrics- Returns:
- The maximum amount of memory in bytes;
-1if undefined.
-
getUpTime
public long getUpTime()
Returns the uptime of the Java virtual machine in milliseconds.- Specified by:
getUpTimein interfaceGridClientNodeMetrics- Returns:
- Uptime of the Java virtual machine in milliseconds.
-
getStartTime
public long getStartTime()
Returns the start time of the Java virtual machine in milliseconds. This method returns the approximate time when the Java virtual machine started.- Specified by:
getStartTimein interfaceGridClientNodeMetrics- Returns:
- Start time of the Java virtual machine in milliseconds.
-
getNodeStartTime
public 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 interfaceGridClientNodeMetrics- Returns:
- Start time of the grid node in milliseconds.
-
getCurrentThreadCount
public int getCurrentThreadCount()
Returns the current number of live threads including both daemon and non-daemon threads.- Specified by:
getCurrentThreadCountin interfaceGridClientNodeMetrics- Returns:
- Current number of live threads.
-
getMaximumThreadCount
public int getMaximumThreadCount()
Returns the maximum live thread count since the Java virtual machine 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 interfaceGridClientNodeMetrics- Returns:
- The peak live thread count.
-
getTotalStartedThreadCount
public long getTotalStartedThreadCount()
Returns the total number of threads created and also started since the Java virtual machine started.Note: this is not an aggregated metric and it's calculated from the time of the node's startup.
- Specified by:
getTotalStartedThreadCountin interfaceGridClientNodeMetrics- Returns:
- The total number of threads started.
-
getCurrentDaemonThreadCount
public int getCurrentDaemonThreadCount()
Returns the current number of live daemon threads.- Specified by:
getCurrentDaemonThreadCountin interfaceGridClientNodeMetrics- Returns:
- Current number of live daemon threads.
-
getFileSystemFreeSpace
public long getFileSystemFreeSpace()
Returns the number of unallocated bytes in the partition.- Specified by:
getFileSystemFreeSpacein interfaceGridClientNodeMetrics- Returns:
- Number of unallocated bytes in the partition.
-
getFileSystemTotalSpace
public long getFileSystemTotalSpace()
Returns the size of the partition.- Specified by:
getFileSystemTotalSpacein interfaceGridClientNodeMetrics- Returns:
- Size of the partition.
-
getFileSystemUsableSpace
public long getFileSystemUsableSpace()
Returns the number of bytes available to this virtual machine on the partition.- Specified by:
getFileSystemUsableSpacein interfaceGridClientNodeMetrics- Returns:
- Number of bytes available to this virtual machine on the partition.
-
getLastDataVersion
public 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 interfaceGridClientNodeMetrics- Returns:
- Last data version.
-
setTotalCpus
public void setTotalCpus(int availProcs)
Sets available processors.- Parameters:
availProcs- Available processors.
-
setCurrentCpuLoad
public void setCurrentCpuLoad(double load)
Sets current CPU load.- Parameters:
load- Current CPU load.
-
setAverageCpuLoad
public void setAverageCpuLoad(double avgLoad)
Sets CPU load average over the metrics history.- Parameters:
avgLoad- CPU load average.
-
setCurrentGcCpuLoad
public void setCurrentGcCpuLoad(double gcLoad)
Sets current GC CPU load.- Parameters:
gcLoad- Current GC load.
-
setHeapMemoryInitialized
public void setHeapMemoryInitialized(long heapInit)
Sets heap initial memory.- Parameters:
heapInit- Heap initial memory.
-
setHeapMemoryUsed
public void setHeapMemoryUsed(long heapUsed)
Sets used heap memory.- Parameters:
heapUsed- Used heap memory.
-
setHeapMemoryCommitted
public void setHeapMemoryCommitted(long heapCommitted)
Sets committed heap memory.- Parameters:
heapCommitted- Committed heap memory.
-
setHeapMemoryMaximum
public void setHeapMemoryMaximum(long heapMax)
Sets maximum possible heap memory.- Parameters:
heapMax- Maximum possible heap memory.
-
setNonHeapMemoryInitialized
public void setNonHeapMemoryInitialized(long nonHeapInit)
Sets initial non-heap memory.- Parameters:
nonHeapInit- Initial non-heap memory.
-
setNonHeapMemoryUsed
public void setNonHeapMemoryUsed(long nonHeapUsed)
Sets used non-heap memory.- Parameters:
nonHeapUsed- Used non-heap memory.
-
setNonHeapMemoryCommitted
public void setNonHeapMemoryCommitted(long nonHeapCommitted)
Sets committed non-heap memory.- Parameters:
nonHeapCommitted- Committed non-heap memory.
-
setNonHeapMemoryMaximum
public void setNonHeapMemoryMaximum(long nonHeapMax)
Sets maximum possible non-heap memory.- Parameters:
nonHeapMax- Maximum possible non-heap memory.
-
setUpTime
public void setUpTime(long upTime)
Sets VM up time.- Parameters:
upTime- VN up time.
-
setStartTime
public void setStartTime(long startTime)
Sets VM start time.- Parameters:
startTime- VM start time.
-
setNodeStartTime
public void setNodeStartTime(long nodeStartTime)
Sets node start time.- Parameters:
nodeStartTime- node start time.
-
setCurrentThreadCount
public void setCurrentThreadCount(int threadCnt)
Sets thread count.- Parameters:
threadCnt- Thread count.
-
setMaximumThreadCount
public void setMaximumThreadCount(int peakThreadCnt)
Sets peak thread count.- Parameters:
peakThreadCnt- Peak thread count.
-
setTotalStartedThreadCount
public void setTotalStartedThreadCount(long startedThreadCnt)
Sets started thread count.- Parameters:
startedThreadCnt- Started thread count.
-
setCurrentDaemonThreadCount
public void setCurrentDaemonThreadCount(int daemonThreadCnt)
Sets daemon thread count.- Parameters:
daemonThreadCnt- Daemon thread count.
-
setFileSystemFreeSpace
public void setFileSystemFreeSpace(long fileSysFreeSpace)
Sets the number of unallocated bytes in the partition.- Parameters:
fileSysFreeSpace- The number of unallocated bytes in the partition.
-
setFileSystemTotalSpace
public void setFileSystemTotalSpace(long fileSysTotalSpace)
Sets size of the partition.- Parameters:
fileSysTotalSpace- Size of the partition.
-
setFileSystemUsableSpace
public void setFileSystemUsableSpace(long fileSysUsableSpace)
Sets the number of bytes available to this virtual machine on the partition.- Parameters:
fileSysUsableSpace- The number of bytes available to this virtual machine on the partition.
-
setLastDataVersion
public void setLastDataVersion(long lastDataVer)
Sets last data version.- Parameters:
lastDataVer- Last data version.
-
getSentMessagesCount
public int getSentMessagesCount()
Gets sent messages count.- Specified by:
getSentMessagesCountin interfaceGridClientNodeMetrics- Returns:
- Sent messages count.
-
setSentMessagesCount
public void setSentMessagesCount(int sentMsgsCnt)
Sets sent messages count.- Parameters:
sentMsgsCnt- Sent messages count.
-
getSentBytesCount
public long getSentBytesCount()
Gets sent bytes count.- Specified by:
getSentBytesCountin interfaceGridClientNodeMetrics- Returns:
- Sent bytes count.
-
setSentBytesCount
public void setSentBytesCount(long sentBytesCnt)
Sets sent bytes count.- Parameters:
sentBytesCnt- Sent bytes count.
-
getReceivedMessagesCount
public int getReceivedMessagesCount()
Gets received messages count.- Specified by:
getReceivedMessagesCountin interfaceGridClientNodeMetrics- Returns:
- Received messages count.
-
setReceivedMessagesCount
public void setReceivedMessagesCount(int rcvdMsgsCnt)
Sets received messages count.- Parameters:
rcvdMsgsCnt- Received messages count.
-
getReceivedBytesCount
public long getReceivedBytesCount()
Gets received bytes count.- Specified by:
getReceivedBytesCountin interfaceGridClientNodeMetrics- Returns:
- Received bytes count.
-
setReceivedBytesCount
public void setReceivedBytesCount(long rcvdBytesCnt)
Sets received bytes count.- Parameters:
rcvdBytesCnt- Received bytes count.
-
-