Kieker 1.10

kieker.monitoring.sampler.mxbean
Class AbstractMXBeanSampler

java.lang.Object
  extended by kieker.monitoring.sampler.mxbean.AbstractMXBeanSampler
All Implemented Interfaces:
ISampler
Direct Known Subclasses:
ClassLoadingSampler, CompilationSampler, GCSampler, MemorySampler, ThreadsStatusSampler, UptimeSampler

public abstract class AbstractMXBeanSampler
extends 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
AbstractMXBeanSampler()
          Empty constructor.
 
Method Summary
 void sample(IMonitoringController monitoringController)
          Perform one measurement with potential multiple records.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMXBeanSampler

public AbstractMXBeanSampler()
Empty constructor.

Method Detail

sample

public final void sample(IMonitoringController monitoringController)
                  throws Exception
Perform one measurement with potential multiple records.

Specified by:
sample in interface ISampler
Parameters:
monitoringController - The controller to which the sampler should pass the data.
Throws:
Exception - depending on the concrete sampler different exceptions can be raised

Kieker 1.10

Copyright 2014 Kieker Project, http://kieker-monitoring.net