public class ScheduledSamplerJob
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
ScheduledSamplerJob(IMonitoringController monitoringController,
ISampler sensor)
Constructs a new
ScheduledSamplerJob with the given parameters. |
public ScheduledSamplerJob(IMonitoringController monitoringController, ISampler sensor)
ScheduledSamplerJob
with the given parameters.monitoringController
- used to log the sampled data (represented as IMonitoringRecord
s) via
IWriterController.newMonitoringRecord(kieker.common.record.IMonitoringRecord)
.sensor
- sampler to be trigger via ISampler.sample(IMonitoringController)
public final void run() throws java.lang.RuntimeException
RuntimeException
if an error occurred.run
in interface java.lang.Runnable
java.lang.RuntimeException
public void setFuture(java.util.concurrent.ScheduledFuture<?> future)
future
- The new future object.public java.util.concurrent.ScheduledFuture<?> getFuture()
ScheduledFuture
which allows to cancel future
executions of this ScheduledSamplerJob
.Copyright 2017 Kieker Project, http://kieker-monitoring.net