Search in sources :

Example 16 with TimerSchedule

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));
}
Also used : TimerSchedule(org.gluu.service.timer.schedule.TimerSchedule) TranscodingRulesUpdateEvent(org.gluu.oxtrust.service.cdi.event.TranscodingRulesUpdateEvent) TimerEvent(org.gluu.service.timer.event.TimerEvent)

Example 17 with TimerSchedule

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));
}
Also used : LdapStatusEvent(org.gluu.service.cdi.event.LdapStatusEvent) AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) TimerSchedule(org.gluu.service.timer.schedule.TimerSchedule) TimerEvent(org.gluu.service.timer.event.TimerEvent)

Example 18 with TimerSchedule

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));
}
Also used : AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) AuthConfigurationEvent(org.gluu.oxauth.service.cdi.event.AuthConfigurationEvent) TimerSchedule(org.gluu.service.timer.schedule.TimerSchedule) TimerEvent(org.gluu.service.timer.event.TimerEvent)

Example 19 with TimerSchedule

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");
}
Also used : AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) TimerSchedule(org.gluu.service.timer.schedule.TimerSchedule) KeyGenerationEvent(org.gluu.oxauth.service.cdi.event.KeyGenerationEvent) TimerEvent(org.gluu.service.timer.event.TimerEvent)

Example 20 with TimerSchedule

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();
}
Also used : CleanerEvent(org.gluu.service.cdi.event.CleanerEvent) AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) TimerSchedule(org.gluu.service.timer.schedule.TimerSchedule) TimerEvent(org.gluu.service.timer.event.TimerEvent)

Aggregations

TimerSchedule (org.gluu.service.timer.schedule.TimerSchedule)22 TimerEvent (org.gluu.service.timer.event.TimerEvent)21 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)15 Date (java.util.Date)2 StatusCheckerTimerEvent (org.gluu.oxtrust.service.cdi.event.StatusCheckerTimerEvent)2 Asynchronous (org.gluu.service.cdi.async.Asynchronous)2 CleanerEvent (org.gluu.service.cdi.event.CleanerEvent)2 LdapStatusEvent (org.gluu.service.cdi.event.LdapStatusEvent)2 CacheRefreshConfiguration (org.gluu.config.oxtrust.CacheRefreshConfiguration)1 AuthConfigurationEvent (org.gluu.oxauth.service.cdi.event.AuthConfigurationEvent)1 ExpirationEvent (org.gluu.oxauth.service.cdi.event.ExpirationEvent)1 KeyGenerationEvent (org.gluu.oxauth.service.cdi.event.KeyGenerationEvent)1 StatEvent (org.gluu.oxauth.service.cdi.event.StatEvent)1 CacheRefreshEvent (org.gluu.oxtrust.service.cdi.event.CacheRefreshEvent)1 EntityIdMonitoringEvent (org.gluu.oxtrust.service.cdi.event.EntityIdMonitoringEvent)1 LogFileSizeChekerEvent (org.gluu.oxtrust.service.cdi.event.LogFileSizeChekerEvent)1 MetadataValidationEvent (org.gluu.oxtrust.service.cdi.event.MetadataValidationEvent)1 StatusCheckerDailyEvent (org.gluu.oxtrust.service.cdi.event.StatusCheckerDailyEvent)1 TranscodingRulesUpdateEvent (org.gluu.oxtrust.service.cdi.event.TranscodingRulesUpdateEvent)1 CibaRequestsProcessorEvent (org.gluu.service.cdi.event.CibaRequestsProcessorEvent)1