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
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract IMonitoringRecord[]createNewMonitoringRecords(long timestamp, String hostname, String vmName, IMonitoringController monitoringCtr) Abstract method used as interface to realize concrete samplers.final voidsample(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, String hostname, 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
-