use of org.gluu.service.timer.event.TimerEvent in project oxTrust by GluuFederation.
the class EntityIDMonitoringService method initTimer.
public void initTimer() {
log.debug("Initializing EntityId Monitoring Timer");
this.isActive = new AtomicBoolean(false);
final int delay = 30;
final int interval = DEFAULT_INTERVAL;
timerEvent.fire(new TimerEvent(new TimerSchedule(delay, interval), new EntityIdMonitoringEvent(), Scheduled.Literal.INSTANCE));
}
use of org.gluu.service.timer.event.TimerEvent in project oxTrust by GluuFederation.
the class LogDir method initTimer.
public void initTimer() {
log.info("Initializing Log File Size Checker Timer");
this.isActive = new AtomicBoolean(false);
final int delay = 2 * 60;
final int interval = DEFAULT_INTERVAL;
timerEvent.fire(new TimerEvent(new TimerSchedule(delay, interval), new LogFileSizeChekerEvent(), Scheduled.Literal.INSTANCE));
}
use of org.gluu.service.timer.event.TimerEvent in project oxTrust by GluuFederation.
the class CleanerTimer method initTimer.
public void initTimer() {
log.debug("Initializing Cleaner Timer");
cleanUpLogger.addNewLogLine("Initializing Cleaner Timer at:" + new Date());
this.isActive = new AtomicBoolean(false);
// Schedule to start cleaner every 1 minute
cleanerEvent.fire(new TimerEvent(new TimerSchedule(DEFAULT_INTERVAL, DEFAULT_INTERVAL), new CleanerEvent(), Scheduled.Literal.INSTANCE));
cleanUpLogger.addNewLogLine("Initialization Done at :" + new Date());
}
use of org.gluu.service.timer.event.TimerEvent in project oxTrust by GluuFederation.
the class UpdateChecker method initTimer.
public void initTimer() {
this.isActive = new AtomicBoolean(false);
final int delay = 1 * 60;
final int interval = DEFAULT_INTERVAL;
timerEvent.fire(new TimerEvent(new TimerSchedule(delay, interval), new StatusCheckerTimerEvent(), Scheduled.Literal.INSTANCE));
}
use of org.gluu.service.timer.event.TimerEvent in project oxAuth by GluuFederation.
the class ConfigurationFactory method initTimer.
public void initTimer() {
log.debug("Initializing Configuration Timer");
final int delay = 30;
final int interval = DEFAULT_INTERVAL;
timerEvent.fire(new TimerEvent(new TimerSchedule(delay, interval), new ConfigurationEvent(), Scheduled.Literal.INSTANCE));
}
Aggregations