Package kieker.monitoring.sampler.mxbean
Class AbstractMXBeanSampler
java.lang.Object
kieker.monitoring.sampler.mxbean.AbstractMXBeanSampler
- All Implemented Interfaces:
ISampler
- Direct Known Subclasses:
ClassLoadingSampler
,CompilationSampler
,GCSampler
,MemorySampler
,ThreadsStatusSampler
,UptimeSampler
public abstract class AbstractMXBeanSampler extends java.lang.Object implements ISampler
This is an abstract base for all sampler using the MXBean interface to access information from the JVM.
- Since:
- 1.10
- Author:
- Nils Christian Ehmke
-
Constructor Summary
Constructors Constructor Description AbstractMXBeanSampler()
Empty constructor. -
Method Summary
Modifier and Type Method Description protected abstract IMonitoringRecord[]
createNewMonitoringRecords(long timestamp, java.lang.String hostname, java.lang.String vmName, IMonitoringController monitoringCtr)
Abstract method used as interface to realize concrete samplers.void
sample(IMonitoringController monitoringController)
Perform one measurement with potential multiple records.
-
Constructor Details
-
AbstractMXBeanSampler
public AbstractMXBeanSampler()Empty constructor.
-
-
Method Details
-
sample
Perform one measurement with potential multiple records. -
createNewMonitoringRecords
protected abstract IMonitoringRecord[] createNewMonitoringRecords(long timestamp, java.lang.String hostname, java.lang.String vmName, IMonitoringController monitoringCtr)Abstract method used as interface to realize concrete samplers.- 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
-