Package com.berryworks.jquantify.util
Class VMUsage
- java.lang.Object
-
- com.berryworks.jquantify.Metric
-
- com.berryworks.jquantify.util.VMUsage
-
- All Implemented Interfaces:
Serializable
public class VMUsage extends Metric
A subclass ofMetricthat observes memory usage and number of threads for the VM.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.berryworks.jquantify.Metric
intervalSeconds, startTime, totalIntervals
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int inCount)Take a sample of the current values from the VM.intgetActiveThreads()Gets the activeThreads attribute of the VMUsage objectintgetActiveThreadsMaximum()Gets the activeThreadsMaximum attribute of the VMUsage objectfloatgetActiveThreadsMean()Gets the activeThreadsMean attribute of the VMUsage objectintgetActiveThreadsMinimum()Gets the activeThreadsMinimum attribute of the VMUsage objectlonggetCount()Gets the total count of events.longgetFreeMemory()Gets the freeMemory attribute of the VMUsage objectlonggetFreeMemoryMaximum()Gets the freeMemoryMaximum attribute of the VMUsage objectdoublegetFreeMemoryMean()Gets the freeMemoryMean attribute of the VMUsage objectlonggetFreeMemoryMinimum()Gets the freeMemoryMinimum attribute of the VMUsage objectintgetSampleCount()Gets the sampleCount attribute of the VMUsage objectlonggetTotalIntervals()Gets the totalIntervals attribute of the VMUsage objectlonggetTotalMemory()Gets the totalMemory attribute of the VMUsage objectlonggetTotalMemoryMaximum()Gets the totalMemoryMaximum attribute of the VMUsage objectdoublegetTotalMemoryMean()Gets the totalMemoryMean attribute of the VMUsage objectlonggetTotalMemoryMinimum()Gets the totalMemoryMinimum attribute of the VMUsage objectvoidreset()Reset thisMetricto its "zero" condition.-
Methods inherited from class com.berryworks.jquantify.Metric
add, getAge, getAgeMillis, getIntervalSeconds, getLabel, setLabel, uptime
-
-
-
-
Constructor Detail
-
VMUsage
public VMUsage(String inLabel)
-
-
Method Detail
-
reset
public void reset()
Description copied from class:MetricReset thisMetricto its "zero" condition.
-
getSampleCount
public int getSampleCount()
Gets the sampleCount attribute of the VMUsage object- Returns:
- The sampleCount value
-
getActiveThreads
public int getActiveThreads()
Gets the activeThreads attribute of the VMUsage object- Returns:
- The activeThreads value
-
getActiveThreadsMinimum
public int getActiveThreadsMinimum()
Gets the activeThreadsMinimum attribute of the VMUsage object- Returns:
- The activeThreadsMinimum value
-
getActiveThreadsMaximum
public int getActiveThreadsMaximum()
Gets the activeThreadsMaximum attribute of the VMUsage object- Returns:
- The activeThreadsMaximum value
-
getActiveThreadsMean
public float getActiveThreadsMean()
Gets the activeThreadsMean attribute of the VMUsage object- Returns:
- The activeThreadsMean value
-
getFreeMemory
public long getFreeMemory()
Gets the freeMemory attribute of the VMUsage object- Returns:
- The freeMemory value
-
getFreeMemoryMinimum
public long getFreeMemoryMinimum()
Gets the freeMemoryMinimum attribute of the VMUsage object- Returns:
- The freeMemoryMinimum value
-
getFreeMemoryMaximum
public long getFreeMemoryMaximum()
Gets the freeMemoryMaximum attribute of the VMUsage object- Returns:
- The freeMemoryMaximum value
-
getFreeMemoryMean
public double getFreeMemoryMean()
Gets the freeMemoryMean attribute of the VMUsage object- Returns:
- The freeMemoryMean value
-
getTotalMemory
public long getTotalMemory()
Gets the totalMemory attribute of the VMUsage object- Returns:
- The totalMemory value
-
getTotalMemoryMinimum
public long getTotalMemoryMinimum()
Gets the totalMemoryMinimum attribute of the VMUsage object- Returns:
- The totalMemoryMinimum value
-
getTotalMemoryMaximum
public long getTotalMemoryMaximum()
Gets the totalMemoryMaximum attribute of the VMUsage object- Returns:
- The totalMemoryMaximum value
-
getTotalMemoryMean
public double getTotalMemoryMean()
Gets the totalMemoryMean attribute of the VMUsage object- Returns:
- The totalMemoryMean value
-
getTotalIntervals
public long getTotalIntervals()
Gets the totalIntervals attribute of the VMUsage object- Overrides:
getTotalIntervalsin classMetric- Returns:
- 0 since VMUsage does not use intervals
-
add
public void add(int inCount)
Take a sample of the current values from the VM.
-
-