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. |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.ScheduledFuture<?> |
getFuture() |
void |
run()
Throws a
RuntimeException if an error occurred. |
void |
setFuture(java.util.concurrent.ScheduledFuture<?> future) |
public ScheduledSamplerJob(IMonitoringController monitoringController, ISampler sensor)
ScheduledSamplerJob with the given parameters.monitoringController - used to log the sampled data (represented as IMonitoringRecords) 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.Runnablejava.lang.RuntimeExceptionpublic 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 2020 Kieker Project, http://kieker-monitoring.net