kieker.monitoring.core.sampler
Class ScheduledSamplerJob
java.lang.Object
kieker.monitoring.core.sampler.ScheduledSamplerJob
- All Implemented Interfaces:
- Runnable
public class ScheduledSamplerJob
- extends Object
- implements Runnable
- Author:
- Andre van Hoorn
ScheduledSamplerJob
public ScheduledSamplerJob(IMonitoringController monitoringController,
ISampler sensor)
- Constructs a new
ScheduledSamplerJob
with the given parameters.
- Parameters:
monitoringController
- used to log the sampled data (represented as
IMonitoringRecord
s) via
IMonitoringController#newMonitoringRecord(IMonitoringRecord)
sampler
- sampler to be trigger via
ISampler#sample(IMonitoringController)
run
public final void run()
throws RuntimeException
- Throws a
RuntimeException
if an error occurred.
- Specified by:
run
in interface Runnable
- Throws:
RuntimeException
setFuture
public void setFuture(ScheduledFuture<?> future)
- Parameters:
future
-
getFuture
public ScheduledFuture<?> getFuture()
- Returns:
Copyright 2011 the Kieker Project, http://kieker.sourceforge.net>