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 |
---|---|
long |
getCollectorInvocations(long collector) |
String |
getCollectorName(long collector) |
long |
getCollectorTime(long collector) |
String |
getCommandLine() |
long |
getGenerationCapacity(long generation) |
String |
getGenerationCollector(long generation) |
long |
getGenerationMaxCapacity(long generation) |
String |
getGenerationName(long generation) |
String |
getJavaHome() |
String |
getJavaVersion() |
long |
getLoadedClasses() |
String |
getMainClass() |
long |
getSpaceCapacity(long generation,
long space) |
long |
getSpaceMaxCapacity(long generation,
long space) |
String |
getSpaceName(long generation,
long space) |
long |
getSpaceUsed(long generation,
long space) |
long |
getTotalCollectors() |
long |
getTotalGcGenerations() |
long |
getTotalSpaces(long generation) |
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
public long getTotalCollectors() throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorException
public String getCollectorName(long collector) throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorException
public long getCollectorTime(long collector) throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorException
public long getCollectorInvocations(long collector) throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorException
public long getTotalGcGenerations() throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorException
public String getGenerationName(long generation) throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorException
public long getGenerationCapacity(long generation) throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorException
public long getGenerationMaxCapacity(long generation) throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorException
public String getGenerationCollector(long generation) throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorException
public long getTotalSpaces(long generation) throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorException
public String getSpaceName(long generation, long space) throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorException
public long getSpaceCapacity(long generation, long space) throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorException
public long getSpaceMaxCapacity(long generation, long space) throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorException
public long getSpaceUsed(long generation, long space) throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorException
public long getLoadedClasses() throws sun.jvmstat.monitor.MonitorException
sun.jvmstat.monitor.MonitorException
Copyright © 2012. All Rights Reserved.