Package org.openspaces.admin.internal.vm
Class DefaultVirtualMachinesStatistics
java.lang.Object
org.openspaces.admin.internal.vm.DefaultVirtualMachinesStatistics
- All Implemented Interfaces:
VirtualMachinesStatistics
- Author:
- kimchy
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultVirtualMachinesStatistics(VirtualMachineStatistics[] virutualMachinesStatistics, VirtualMachinesDetails details, VirtualMachinesStatistics previousStats, int historySize) -
Method Summary
Modifier and TypeMethodDescriptionReturns the details of the all the virtual machines.longdoubleThe percentage of the gc collection time between the current sampled statistics and the previous one.longlongdoubledoubledoubleReturns the memory heap percentage from used to committed.longdoubledoubledoubleReturns the memory heap percentage from used to the max.longdoubledoubledoubleReturns the memory non heap percentage from used to committed.longdoubledoubledoubleReturns the memory non heap percentage from used to the max.intReturns the previous statistics sampled.longReturns the previous timestamp of the statistics sampled,-1if this is the first one.intgetSize()Returns the number of statistics (virtual machines) aggregated.intReturns the timeline (from newest to oldest) history statistics, including this one.longReturn the timestamp when the statistics were taken.longbooleanisNA()Returnstrueif this is not valid statistics.voidsetPreviousStats(VirtualMachinesStatistics previousStats)
-
Constructor Details
-
DefaultVirtualMachinesStatistics
public DefaultVirtualMachinesStatistics(VirtualMachineStatistics[] virutualMachinesStatistics, VirtualMachinesDetails details, VirtualMachinesStatistics previousStats, int historySize)
-
-
Method Details
-
isNA
public boolean isNA()Description copied from interface:VirtualMachinesStatisticsReturnstrueif this is not valid statistics.- Specified by:
isNAin interfaceVirtualMachinesStatistics
-
getTimestamp
public long getTimestamp()Description copied from interface:VirtualMachinesStatisticsReturn the timestamp when the statistics were taken.- Specified by:
getTimestampin interfaceVirtualMachinesStatistics
-
getPreviousTimestamp
public long getPreviousTimestamp()Description copied from interface:VirtualMachinesStatisticsReturns the previous timestamp of the statistics sampled,-1if this is the first one.- Specified by:
getPreviousTimestampin interfaceVirtualMachinesStatistics
-
getTimeline
Description copied from interface:VirtualMachinesStatisticsReturns the timeline (from newest to oldest) history statistics, including this one.- Specified by:
getTimelinein interfaceVirtualMachinesStatistics
-
getPrevious
Description copied from interface:VirtualMachinesStatisticsReturns the previous statistics sampled.nullif this is the first one.- Specified by:
getPreviousin interfaceVirtualMachinesStatistics
-
setPreviousStats
-
getSize
public int getSize()Description copied from interface:VirtualMachinesStatisticsReturns the number of statistics (virtual machines) aggregated.- Specified by:
getSizein interfaceVirtualMachinesStatistics
-
getDetails
Description copied from interface:VirtualMachinesStatisticsReturns the details of the all the virtual machines.- Specified by:
getDetailsin interfaceVirtualMachinesStatistics
-
getUptime
public long getUptime()- Specified by:
getUptimein interfaceVirtualMachinesStatistics
-
getMemoryHeapCommittedInBytes
public long getMemoryHeapCommittedInBytes()- Specified by:
getMemoryHeapCommittedInBytesin interfaceVirtualMachinesStatistics
-
getMemoryHeapCommittedInMB
public double getMemoryHeapCommittedInMB()- Specified by:
getMemoryHeapCommittedInMBin interfaceVirtualMachinesStatistics
-
getMemoryHeapCommittedInGB
public double getMemoryHeapCommittedInGB()- Specified by:
getMemoryHeapCommittedInGBin interfaceVirtualMachinesStatistics
-
getMemoryHeapUsedInBytes
public long getMemoryHeapUsedInBytes()- Specified by:
getMemoryHeapUsedInBytesin interfaceVirtualMachinesStatistics
-
getMemoryHeapUsedInMB
public double getMemoryHeapUsedInMB()- Specified by:
getMemoryHeapUsedInMBin interfaceVirtualMachinesStatistics
-
getMemoryHeapUsedInGB
public double getMemoryHeapUsedInGB()- Specified by:
getMemoryHeapUsedInGBin interfaceVirtualMachinesStatistics
-
getMemoryHeapUsedPerc
public double getMemoryHeapUsedPerc()Description copied from interface:VirtualMachinesStatisticsReturns the memory heap percentage from used to the max.- Specified by:
getMemoryHeapUsedPercin interfaceVirtualMachinesStatistics
-
getMemoryHeapCommittedUsedPerc
public double getMemoryHeapCommittedUsedPerc()Description copied from interface:VirtualMachinesStatisticsReturns the memory heap percentage from used to committed.- Specified by:
getMemoryHeapCommittedUsedPercin interfaceVirtualMachinesStatistics
-
getMemoryNonHeapCommittedInBytes
public long getMemoryNonHeapCommittedInBytes()- Specified by:
getMemoryNonHeapCommittedInBytesin interfaceVirtualMachinesStatistics
-
getMemoryNonHeapCommittedInMB
public double getMemoryNonHeapCommittedInMB()- Specified by:
getMemoryNonHeapCommittedInMBin interfaceVirtualMachinesStatistics
-
getMemoryNonHeapCommittedInGB
public double getMemoryNonHeapCommittedInGB()- Specified by:
getMemoryNonHeapCommittedInGBin interfaceVirtualMachinesStatistics
-
getMemoryNonHeapUsedInBytes
public long getMemoryNonHeapUsedInBytes()- Specified by:
getMemoryNonHeapUsedInBytesin interfaceVirtualMachinesStatistics
-
getMemoryNonHeapUsedInMB
public double getMemoryNonHeapUsedInMB()- Specified by:
getMemoryNonHeapUsedInMBin interfaceVirtualMachinesStatistics
-
getMemoryNonHeapUsedInGB
public double getMemoryNonHeapUsedInGB()- Specified by:
getMemoryNonHeapUsedInGBin interfaceVirtualMachinesStatistics
-
getMemoryNonHeapUsedPerc
public double getMemoryNonHeapUsedPerc()Description copied from interface:VirtualMachinesStatisticsReturns the memory non heap percentage from used to the max.- Specified by:
getMemoryNonHeapUsedPercin interfaceVirtualMachinesStatistics
-
getMemoryNonHeapCommittedUsedPerc
public double getMemoryNonHeapCommittedUsedPerc()Description copied from interface:VirtualMachinesStatisticsReturns the memory non heap percentage from used to committed.- Specified by:
getMemoryNonHeapCommittedUsedPercin interfaceVirtualMachinesStatistics
-
getThreadCount
public int getThreadCount()- Specified by:
getThreadCountin interfaceVirtualMachinesStatistics
-
getPeakThreadCount
public int getPeakThreadCount()- Specified by:
getPeakThreadCountin interfaceVirtualMachinesStatistics
-
getGcCollectionCount
public long getGcCollectionCount()- Specified by:
getGcCollectionCountin interfaceVirtualMachinesStatistics
-
getGcCollectionTime
public long getGcCollectionTime()- Specified by:
getGcCollectionTimein interfaceVirtualMachinesStatistics
-
getGcCollectionPerc
public double getGcCollectionPerc()Description copied from interface:VirtualMachinesStatisticsThe percentage of the gc collection time between the current sampled statistics and the previous one.- Specified by:
getGcCollectionPercin interfaceVirtualMachinesStatistics
-