Class GCSampler

All Implemented Interfaces:
ISampler

public class GCSampler extends AbstractMXBeanSampler
A sampler using the MXBean interface to access information about the garbage collector(s). The sampler produces a GCRecord for each garbage collector each time the sample method is called.
Since:
1.10
Author:
Nils Christian Ehmke
  • Constructor Details

    • GCSampler

      public GCSampler()
      Create new GCSampler.
  • Method Details

    • createNewMonitoringRecords

      protected IMonitoringRecord[] createNewMonitoringRecords(long timestamp, String hostname, String vmName, IMonitoringController monitoringCtr)
      Description copied from class: AbstractMXBeanSampler
      Abstract method used as interface to realize concrete samplers.
      Specified by:
      createNewMonitoringRecords in class AbstractMXBeanSampler
      Parameters:
      timestamp - the current time.
      hostname - the hostname of the machine where this measurement is performed
      vmName - name of the vm
      monitoringCtr - monitoring controller used in the measurement
      Returns:
      returns an array of records containing the measurement