Kieker 1.3

kieker.monitoring.core.sampler
Class ScheduledSamplerJob

java.lang.Object
  extended by kieker.monitoring.core.sampler.ScheduledSamplerJob
All Implemented Interfaces:
Runnable

public class ScheduledSamplerJob
extends Object
implements Runnable

Author:
Andre van Hoorn

Constructor Summary
ScheduledSamplerJob(IMonitoringController monitoringController, ISampler sensor)
          Constructs a new ScheduledSamplerJob with the given parameters.
 
Method Summary
 ScheduledFuture<?> getFuture()
           
 void run()
          Throws a RuntimeException if an error occurred.
 void setFuture(ScheduledFuture<?> future)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 IMonitoringRecords) via IMonitoringController#newMonitoringRecord(IMonitoringRecord)
sampler - sampler to be trigger via ISampler#sample(IMonitoringController)
Method Detail

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:

Kieker 1.3

Copyright 2011 the Kieker Project, http://kieker.sourceforge.net