use of org.gluu.service.timer.schedule.TimerSchedule in project oxTrust by GluuFederation.
the class TranscodingRulesUpdater method initTimer.
public void initTimer() {
log.debug("Initializing Shibboleth Transcoding Rules Updater");
final int delay = DEFAULT_UPDATE_DELAY;
final int interval = DEFAULT_UPDATE_INTERVAL;
TimerSchedule timerSchedule = new TimerSchedule(delay, interval);
timerEvent.fire(new TimerEvent(timerSchedule, new TranscodingRulesUpdateEvent(), Scheduled.Literal.INSTANCE));
}
use of org.gluu.service.timer.schedule.TimerSchedule in project oxTrust by GluuFederation.
the class PersistanceStatusTimer method initTimer.
public void initTimer() {
log.info("Initializing Persistance Layer Status Timer");
this.isActive = new AtomicBoolean(false);
timerEvent.fire(new TimerEvent(new TimerSchedule(DEFAULT_INTERVAL, DEFAULT_INTERVAL), new LdapStatusEvent(), Scheduled.Literal.INSTANCE));
}
use of org.gluu.service.timer.schedule.TimerSchedule in project oxAuth by GluuFederation.
the class AppInitializer method initTimer.
public void initTimer() {
this.isActive = new AtomicBoolean(false);
this.setLastFinishedTime(System.currentTimeMillis());
timerEvent.fire(new TimerEvent(new TimerSchedule(60, DEFAULT_INTERVAL), new AuthConfigurationEvent(), Scheduled.Literal.INSTANCE));
}
use of org.gluu.service.timer.schedule.TimerSchedule in project oxAuth by GluuFederation.
the class KeyGeneratorTimer method initTimer.
public void initTimer() {
log.info("Initializing Key Generator Timer");
this.isActive = new AtomicBoolean(false);
timerEvent.fire(new TimerEvent(new TimerSchedule(DEFAULT_INTERVAL, DEFAULT_INTERVAL), new KeyGenerationEvent(), Scheduled.Literal.INSTANCE));
this.lastFinishedTime = System.currentTimeMillis();
log.info("Initialized Key Generator Timer");
}
use of org.gluu.service.timer.schedule.TimerSchedule in project oxAuth by GluuFederation.
the class CleanerTimer method initTimer.
public void initTimer() {
log.debug("Initializing Cleaner Timer");
this.isActive = new AtomicBoolean(false);
// Schedule to start cleaner every 30 seconds
cleanerEvent.fire(new TimerEvent(new TimerSchedule(DEFAULT_INTERVAL, DEFAULT_INTERVAL), new CleanerEvent(), Scheduled.Literal.INSTANCE));
this.lastFinishedTime = System.currentTimeMillis();
}
Aggregations