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.MonitorException
public String getMainClass() throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorException
public String getJavaVersion() throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorException
public String getJavaHome() throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorException
public String getVmName() throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorException
public String getVmInfo() throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorException
public String getVmVersion() throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorException
public String getVmArguments() throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorException
Copyright © 2013. All rights reserved.