Package kieker.monitoring.sampler.mxbean
Class ThreadsStatusSampler
java.lang.Object
kieker.monitoring.sampler.mxbean.AbstractMXBeanSampler
kieker.monitoring.sampler.mxbean.ThreadsStatusSampler
- All Implemented Interfaces:
ISampler
A sampler using the MXBean interface to access information about the threads in the JVM. The sampler produces a
ThreadsStatusRecord each time the
sample method is called.- Since:
- 1.10
- Author:
- Nils Christian Ehmke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IMonitoringRecord[]createNewMonitoringRecords(long timestamp, String hostname, String vmName, IMonitoringController monitoringCtr) Abstract method used as interface to realize concrete samplers.Methods inherited from class kieker.monitoring.sampler.mxbean.AbstractMXBeanSampler
sample
-
Constructor Details
-
ThreadsStatusSampler
public ThreadsStatusSampler()Create new ThreadsStatusSampler.
-
-
Method Details
-
createNewMonitoringRecords
protected IMonitoringRecord[] createNewMonitoringRecords(long timestamp, String hostname, String vmName, IMonitoringController monitoringCtr) Description copied from class:AbstractMXBeanSamplerAbstract method used as interface to realize concrete samplers.- Specified by:
createNewMonitoringRecordsin 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
-