public class VmMemoryDataExtractor 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 |
---|
VmMemoryDataExtractor(VmUpdate update) |
Modifier and Type | Method and Description |
---|---|
long |
getGenerationCapacity(long generation) |
String |
getGenerationCollector(long generation) |
long |
getGenerationMaxCapacity(long generation) |
String |
getGenerationName(long generation) |
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 |
getTotalGcGenerations() |
long |
getTotalSpaces(long generation) |
public VmMemoryDataExtractor(VmUpdate update)
public long getTotalGcGenerations() throws VmUpdateException
VmUpdateException
public String getGenerationName(long generation) throws VmUpdateException
VmUpdateException
public long getGenerationCapacity(long generation) throws VmUpdateException
VmUpdateException
public long getGenerationMaxCapacity(long generation) throws VmUpdateException
VmUpdateException
public String getGenerationCollector(long generation) throws VmUpdateException
VmUpdateException
public long getTotalSpaces(long generation) throws VmUpdateException
VmUpdateException
public String getSpaceName(long generation, long space) throws VmUpdateException
VmUpdateException
public long getSpaceCapacity(long generation, long space) throws VmUpdateException
VmUpdateException
public long getSpaceMaxCapacity(long generation, long space) throws VmUpdateException
VmUpdateException
public long getSpaceUsed(long generation, long space) throws VmUpdateException
VmUpdateException
Copyright © 2013. All Rights Reserved.