Interface ISamplingController
- All Known Subinterfaces:
IMonitoringController
- All Known Implementing Classes:
MonitoringController
,SamplingController
public interface ISamplingController
- Since:
- 1.3
- Author:
- Andre van Hoorn, Jan Waller
-
Method Summary
Modifier and Type Method Description boolean
removeScheduledSampler(ScheduledSamplerJob sampler)
Stops future executions of the given periodicScheduledSamplerJob
.ScheduledSamplerJob
schedulePeriodicSampler(ISampler sampler, long initialDelay, long period, java.util.concurrent.TimeUnit timeUnit)
Schedules the givenISampler
with given initial delay, and period.
-
Method Details
-
schedulePeriodicSampler
ScheduledSamplerJob schedulePeriodicSampler(ISampler sampler, long initialDelay, long period, java.util.concurrent.TimeUnit timeUnit)Schedules the givenISampler
with given initial delay, and period.- Parameters:
sampler
- The sampler to schedule.initialDelay
- The initial delay.period
- The period.timeUnit
- The time unit which determines how to interpret the given parameter.- Returns:
- a
ScheduledSamplerJob
as a handler for removing the scheduled sampler later on by using the methodremoveScheduledSampler(ScheduledSamplerJob)
. - Since:
- 1.3
-
removeScheduledSampler
Stops future executions of the given periodicScheduledSamplerJob
.- Parameters:
sampler
- The sampler to be removed.- Returns:
- true if the sensor is not registered
- Since:
- 1.3
-