ing
This commit is contained in:
parent
c8b5d806b9
commit
5ece354a26
|
@ -87,6 +87,7 @@ public class ContainerCollectorService implements CollectorService {
|
||||||
logger.error("Cannot get data from crawler[%s] %s", sensorConfig.getCrawler().getName(), e.getMessage());
|
logger.error("Cannot get data from crawler[%s] %s", sensorConfig.getCrawler().getName(), e.getMessage());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
this.removeSchedule(sensorConfig.getConfigID());
|
||||||
ScheduledFuture<?> sf = this.scheduledExecutorService.scheduleWithFixedDelay(task, 0, interval, TimeUnit.SECONDS);
|
ScheduledFuture<?> sf = this.scheduledExecutorService.scheduleWithFixedDelay(task, 0, interval, TimeUnit.SECONDS);
|
||||||
this.scheduleMap.put(sensorConfig.getConfigID(), sf);
|
this.scheduleMap.put(sensorConfig.getConfigID(), sf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user