public class JvmStatDataExtractor extends 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 |
|---|---|
String |
getCommandLine() |
String |
getJavaHome() |
String |
getJavaVersion() |
String |
getMainClass() |
String |
getVmArguments() |
String |
getVmInfo() |
String |
getVmName() |
String |
getVmVersion() |
public JvmStatDataExtractor(sun.jvmstat.monitor.MonitoredVm vm)
public String getCommandLine() throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic String getMainClass() throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic String getJavaVersion() throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic String getJavaHome() throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic String getVmName() throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic String getVmInfo() throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic String getVmVersion() throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionpublic String getVmArguments() throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorExceptionCopyright © 2013. All Rights Reserved.