public class JvmStatDataExtractor
extends java.lang.Object
Implementation details: For local vms, jvmstat uses a ByteBuffer corresponding to mmap()ed hsperfdata file. The hsperfdata file is updated asynchronously by the vm that created the file. The polling that jvmstat api provides is merely an abstraction over this (possibly always up-to-date) ByteBuffer. So the data this class extracts is as current as possible, and does not correspond to when the jvmstat update events fired.
| Constructor and Description |
|---|
JvmStatDataExtractor(sun.jvmstat.monitor.MonitoredVm vm) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCollectorInvocations(long collector) |
java.lang.String |
getCollectorName(long collector) |
long |
getCollectorTime(long collector) |
java.lang.String |
getCommandLine() |
long |
getGenerationCapacity(long generation) |
java.lang.String |
getGenerationCollector(long generation) |
long |
getGenerationMaxCapacity(long generation) |
java.lang.String |
getGenerationName(long generation) |
java.lang.String |
getJavaHome() |
java.lang.String |
getJavaVersion() |
java.lang.String |
getMainClass() |
long |
getSpaceCapacity(long generation,
long space) |
long |
getSpaceMaxCapacity(long generation,
long space) |
java.lang.String |
getSpaceName(long generation,
long space) |
long |
getSpaceUsed(long generation,
long space) |
long |
getTotalCollectors() |
long |
getTotalGcGenerations() |
long |
getTotalSpaces(long generation) |
java.lang.String |
getVmArguments() |
java.lang.String |
getVmInfo() |
java.lang.String |
getVmName() |
java.lang.String |
getVmVersion() |
public JvmStatDataExtractor(sun.jvmstat.monitor.MonitoredVm vm)
public java.lang.String getCommandLine()
throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic java.lang.String getMainClass()
throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic java.lang.String getJavaVersion()
throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic java.lang.String getJavaHome()
throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic java.lang.String getVmName()
throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic java.lang.String getVmInfo()
throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic java.lang.String getVmVersion()
throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic java.lang.String getVmArguments()
throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic long getTotalCollectors()
throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic java.lang.String getCollectorName(long collector)
throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic long getCollectorTime(long collector)
throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic long getCollectorInvocations(long collector)
throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic long getTotalGcGenerations()
throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic java.lang.String getGenerationName(long generation)
throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic long getGenerationCapacity(long generation)
throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic long getGenerationMaxCapacity(long generation)
throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic java.lang.String getGenerationCollector(long generation)
throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic long getTotalSpaces(long generation)
throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic java.lang.String getSpaceName(long generation,
long space)
throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic long getSpaceCapacity(long generation,
long space)
throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic long getSpaceMaxCapacity(long generation,
long space)
throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic long getSpaceUsed(long generation,
long space)
throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorException