public class VmGcDataExtractor 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 |
---|
VmGcDataExtractor(VmUpdate update) |
Modifier and Type | Method and Description |
---|---|
long |
getCollectorInvocations(long collector) |
String |
getCollectorName(long collector) |
long |
getCollectorTime(long collector) |
long |
getTotalCollectors() |
public VmGcDataExtractor(VmUpdate update)
public long getTotalCollectors() throws VmUpdateException
VmUpdateException
public String getCollectorName(long collector) throws VmUpdateException
VmUpdateException
public long getCollectorTime(long collector) throws VmUpdateException
VmUpdateException
public long getCollectorInvocations(long collector) throws VmUpdateException
VmUpdateException
Copyright © 2013. All Rights Reserved.