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