/** * Creates and schedules the {@link ScheduledSamplerJob}s and stores them for later removal in the {@link Collection} {@link #samplerJobs}. */ private void initSensors() { final ISampler[] samplers = this.createSamplers(); for (final ISampler sampler : samplers) { final ScheduledSamplerJob job = this.samplingController.schedulePeriodicSampler(sampler, this.initialDelaySeconds, this.sensorIntervalSeconds, TimeUnit.SECONDS); this.startedSamplerJobs.add(job); } }
/** * Creates and schedules the {@link ScheduledSamplerJob}s and stores them for later removal in the {@link Collection} {@link #samplerJobs}. */ private void initSensors() { final ISampler[] samplers = this.createSamplers(); for (final ISampler sampler : samplers) { final ScheduledSamplerJob job = this.samplingController.schedulePeriodicSampler(sampler, this.initialDelaySeconds, this.sensorIntervalSeconds, TimeUnit.SECONDS); this.startedSamplerJobs.add(job); } }