Search in sources :

Example 1 with TimerSchedule

use of org.xdi.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);
    int interval = appConfiguration.getCleanServiceInterval();
    if (interval <= 0) {
        interval = DEFAULT_INTERVAL;
    }
    cleanerEvent.fire(new TimerEvent(new TimerSchedule(30, 30), new CleanerEvent(), Scheduled.Literal.INSTANCE));
}
Also used : CleanerEvent(org.xdi.oxauth.service.cdi.event.CleanerEvent) AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) TimerSchedule(org.xdi.service.timer.schedule.TimerSchedule) TimerEvent(org.xdi.service.timer.event.TimerEvent)

Example 2 with TimerSchedule

use of org.xdi.service.timer.schedule.TimerSchedule in project oxAuth by GluuFederation.

the class AppInitializer method initTimer.

public void initTimer() {
    this.isActive = new AtomicBoolean(false);
    this.lastFinishedTime = System.currentTimeMillis();
    timerEvent.fire(new TimerEvent(new TimerSchedule(1 * 60, DEFAULT_INTERVAL), new AuthConfigurationEvent(), Scheduled.Literal.INSTANCE));
}
Also used : AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) TimerSchedule(org.xdi.service.timer.schedule.TimerSchedule) TimerEvent(org.xdi.service.timer.event.TimerEvent)

Example 3 with TimerSchedule

use of org.xdi.service.timer.schedule.TimerSchedule in project oxTrust by GluuFederation.

the class MetadataValidationTimer method initTimer.

public void initTimer() {
    log.debug("Initializing Metadata Validation Timer");
    final int delay = 30;
    final int interval = DEFAULT_INTERVAL;
    timerEvent.fire(new TimerEvent(new TimerSchedule(delay, interval), new MetadataValidationEvent(), Scheduled.Literal.INSTANCE));
}
Also used : TimerSchedule(org.xdi.service.timer.schedule.TimerSchedule) TimerEvent(org.xdi.service.timer.event.TimerEvent) MetadataValidationEvent(org.gluu.oxtrust.service.cdi.event.MetadataValidationEvent)

Example 4 with TimerSchedule

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

Example 5 with TimerSchedule

use of org.xdi.service.timer.schedule.TimerSchedule in project oxTrust 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));
}
Also used : ConfigurationEvent(org.xdi.service.cdi.event.ConfigurationEvent) TimerSchedule(org.xdi.service.timer.schedule.TimerSchedule) TimerEvent(org.xdi.service.timer.event.TimerEvent)

Aggregations

TimerSchedule (org.xdi.service.timer.schedule.TimerSchedule)15 TimerEvent (org.xdi.service.timer.event.TimerEvent)14 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)10 ConfigurationEvent (org.xdi.service.cdi.event.ConfigurationEvent)2 LdapStatusEvent (org.xdi.service.cdi.event.LdapStatusEvent)2 Date (java.util.Date)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 StatusCheckerTimerEvent (org.gluu.oxtrust.service.cdi.event.StatusCheckerTimerEvent)1 SvnSyncEvent (org.gluu.oxtrust.service.cdi.event.SvnSyncEvent)1 JobDataMap (org.quartz.JobDataMap)1 JobDetail (org.quartz.JobDetail)1 SchedulerException (org.quartz.SchedulerException)1 Trigger (org.quartz.Trigger)1 CleanerEvent (org.xdi.oxauth.service.cdi.event.CleanerEvent)1 KeyGenerationEvent (org.xdi.oxauth.service.cdi.event.KeyGenerationEvent)1 Asynchronous (org.xdi.service.cdi.async.Asynchronous)1 UpdateScriptEvent (org.xdi.service.cdi.event.UpdateScriptEvent)1