public abstract class AbstractMXBeanSampler extends java.lang.Object implements ISampler
Constructor and Description |
---|
AbstractMXBeanSampler()
Empty constructor.
|
Modifier and Type | Method and 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.
|
public final void sample(IMonitoringController monitoringController) throws java.lang.Exception
protected abstract IMonitoringRecord[] createNewMonitoringRecords(long timestamp, java.lang.String hostname, java.lang.String vmName, IMonitoringController monitoringCtr)
timestamp
- the current time.hostname
- the hostname of the machine where this measurement is performedvmName
- name of the vmmonitoringCtr
- monitoring controller used in the measurementCopyright 2017 Kieker Project, http://kieker-monitoring.net