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
VmUpdateExceptionpublic String getGenerationName(long generation) throws VmUpdateException
VmUpdateExceptionpublic long getGenerationCapacity(long generation)
throws VmUpdateException
VmUpdateExceptionpublic long getGenerationMaxCapacity(long generation)
throws VmUpdateException
VmUpdateExceptionpublic String getGenerationCollector(long generation) throws VmUpdateException
VmUpdateExceptionpublic long getTotalSpaces(long generation)
throws VmUpdateException
VmUpdateExceptionpublic String getSpaceName(long generation, long space) throws VmUpdateException
VmUpdateExceptionpublic long getSpaceCapacity(long generation,
long space)
throws VmUpdateException
VmUpdateExceptionpublic long getSpaceMaxCapacity(long generation,
long space)
throws VmUpdateException
VmUpdateExceptionpublic long getSpaceUsed(long generation,
long space)
throws VmUpdateException
VmUpdateExceptionCopyright © 2013. All Rights Reserved.