Package kieker.monitoring.sampler.mxbean
Class MemorySampler
java.lang.Object
kieker.monitoring.sampler.mxbean.AbstractMXBeanSampler
kieker.monitoring.sampler.mxbean.MemorySampler
- All Implemented Interfaces:
ISampler
public class MemorySampler extends AbstractMXBeanSampler
A sampler using the MXBean interface to access information about the JVM memory usage. The sampler produces a
MemoryRecord
each time the sample
method is called.- Since:
- 1.10
- Author:
- Nils Christian Ehmke
-
Constructor Summary
Constructors Constructor Description MemorySampler()
Create new GCSampler. -
Method Summary
Modifier and Type Method Description protected IMonitoringRecord[]
createNewMonitoringRecords(long timestamp, java.lang.String hostname, java.lang.String vmName, IMonitoringController monitoringCtr)
Abstract method used as interface to realize concrete samplers.
-
Constructor Details
-
MemorySampler
public MemorySampler()Create new GCSampler.
-
-
Method Details
-
createNewMonitoringRecords
protected IMonitoringRecord[] createNewMonitoringRecords(long timestamp, java.lang.String hostname, java.lang.String vmName, IMonitoringController monitoringCtr)Description copied from class:AbstractMXBeanSampler
Abstract method used as interface to realize concrete samplers.- Specified by:
createNewMonitoringRecords
in classAbstractMXBeanSampler
- Parameters:
timestamp
- the current time.hostname
- the hostname of the machine where this measurement is performedvmName
- name of the vmmonitoringCtr
- monitoring controller used in the measurement- Returns:
- returns an array of records containing the measurement
-