public class DefaultVirtualMachinesStatistics extends Object implements VirtualMachinesStatistics
Constructor and Description |
---|
DefaultVirtualMachinesStatistics(VirtualMachineStatistics[] virutualMachinesStatistics,
VirtualMachinesDetails details,
VirtualMachinesStatistics previousStats,
int historySize) |
Modifier and Type | Method and Description |
---|---|
VirtualMachinesDetails |
getDetails()
Returns the details of the all the virtual machines.
|
long |
getGcCollectionCount() |
double |
getGcCollectionPerc()
The percentage of the gc collection time between the current sampled statistics and the
previous one.
|
long |
getGcCollectionTime() |
long |
getMemoryHeapCommittedInBytes() |
double |
getMemoryHeapCommittedInGB() |
double |
getMemoryHeapCommittedInMB() |
double |
getMemoryHeapCommittedUsedPerc()
Returns the memory heap percentage from used to committed.
|
long |
getMemoryHeapUsedInBytes() |
double |
getMemoryHeapUsedInGB() |
double |
getMemoryHeapUsedInMB() |
double |
getMemoryHeapUsedPerc()
Returns the memory heap percentage from used to the max.
|
long |
getMemoryNonHeapCommittedInBytes() |
double |
getMemoryNonHeapCommittedInGB() |
double |
getMemoryNonHeapCommittedInMB() |
double |
getMemoryNonHeapCommittedUsedPerc()
Returns the memory non heap percentage from used to committed.
|
long |
getMemoryNonHeapUsedInBytes() |
double |
getMemoryNonHeapUsedInGB() |
double |
getMemoryNonHeapUsedInMB() |
double |
getMemoryNonHeapUsedPerc()
Returns the memory non heap percentage from used to the max.
|
int |
getPeakThreadCount() |
VirtualMachinesStatistics |
getPrevious()
Returns the previous statistics sampled.
|
long |
getPreviousTimestamp()
Returns the previous timestamp of the statistics sampled,
-1 if this is the
first one. |
int |
getSize()
Returns the number of statistics (virtual machines) aggregated.
|
int |
getThreadCount() |
List<VirtualMachinesStatistics> |
getTimeline()
Returns the timeline (from newest to oldest) history statistics, including this one.
|
long |
getTimestamp()
Return the timestamp when the statistics were taken.
|
long |
getUptime() |
boolean |
isNA()
Returns
true if this is not valid statistics. |
void |
setPreviousStats(VirtualMachinesStatistics previousStats) |
public DefaultVirtualMachinesStatistics(VirtualMachineStatistics[] virutualMachinesStatistics, VirtualMachinesDetails details, VirtualMachinesStatistics previousStats, int historySize)
public boolean isNA()
VirtualMachinesStatistics
true
if this is not valid statistics.isNA
in interface VirtualMachinesStatistics
public long getTimestamp()
VirtualMachinesStatistics
getTimestamp
in interface VirtualMachinesStatistics
public long getPreviousTimestamp()
VirtualMachinesStatistics
-1
if this is the
first one.getPreviousTimestamp
in interface VirtualMachinesStatistics
public List<VirtualMachinesStatistics> getTimeline()
VirtualMachinesStatistics
getTimeline
in interface VirtualMachinesStatistics
public VirtualMachinesStatistics getPrevious()
VirtualMachinesStatistics
null
if this is the first one.getPrevious
in interface VirtualMachinesStatistics
public void setPreviousStats(VirtualMachinesStatistics previousStats)
public int getSize()
VirtualMachinesStatistics
getSize
in interface VirtualMachinesStatistics
public VirtualMachinesDetails getDetails()
VirtualMachinesStatistics
getDetails
in interface VirtualMachinesStatistics
public long getUptime()
getUptime
in interface VirtualMachinesStatistics
public long getMemoryHeapCommittedInBytes()
getMemoryHeapCommittedInBytes
in interface VirtualMachinesStatistics
public double getMemoryHeapCommittedInMB()
getMemoryHeapCommittedInMB
in interface VirtualMachinesStatistics
public double getMemoryHeapCommittedInGB()
getMemoryHeapCommittedInGB
in interface VirtualMachinesStatistics
public long getMemoryHeapUsedInBytes()
getMemoryHeapUsedInBytes
in interface VirtualMachinesStatistics
public double getMemoryHeapUsedInMB()
getMemoryHeapUsedInMB
in interface VirtualMachinesStatistics
public double getMemoryHeapUsedInGB()
getMemoryHeapUsedInGB
in interface VirtualMachinesStatistics
public double getMemoryHeapUsedPerc()
VirtualMachinesStatistics
getMemoryHeapUsedPerc
in interface VirtualMachinesStatistics
public double getMemoryHeapCommittedUsedPerc()
VirtualMachinesStatistics
getMemoryHeapCommittedUsedPerc
in interface VirtualMachinesStatistics
public long getMemoryNonHeapCommittedInBytes()
getMemoryNonHeapCommittedInBytes
in interface VirtualMachinesStatistics
public double getMemoryNonHeapCommittedInMB()
getMemoryNonHeapCommittedInMB
in interface VirtualMachinesStatistics
public double getMemoryNonHeapCommittedInGB()
getMemoryNonHeapCommittedInGB
in interface VirtualMachinesStatistics
public long getMemoryNonHeapUsedInBytes()
getMemoryNonHeapUsedInBytes
in interface VirtualMachinesStatistics
public double getMemoryNonHeapUsedInMB()
getMemoryNonHeapUsedInMB
in interface VirtualMachinesStatistics
public double getMemoryNonHeapUsedInGB()
getMemoryNonHeapUsedInGB
in interface VirtualMachinesStatistics
public double getMemoryNonHeapUsedPerc()
VirtualMachinesStatistics
getMemoryNonHeapUsedPerc
in interface VirtualMachinesStatistics
public double getMemoryNonHeapCommittedUsedPerc()
VirtualMachinesStatistics
getMemoryNonHeapCommittedUsedPerc
in interface VirtualMachinesStatistics
public int getThreadCount()
getThreadCount
in interface VirtualMachinesStatistics
public int getPeakThreadCount()
getPeakThreadCount
in interface VirtualMachinesStatistics
public long getGcCollectionCount()
getGcCollectionCount
in interface VirtualMachinesStatistics
public long getGcCollectionTime()
getGcCollectionTime
in interface VirtualMachinesStatistics
public double getGcCollectionPerc()
VirtualMachinesStatistics
getGcCollectionPerc
in interface VirtualMachinesStatistics
Copyright © GigaSpaces.