Search in sources :

Example 6 with TimerSchedule

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

the class StatusCheckerTimer method initTimer.

public void initTimer() {
    log.debug("Initializing Daily Status Cheker Timer");
    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));
}
Also used : AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) StatusCheckerTimerEvent(org.gluu.oxtrust.service.cdi.event.StatusCheckerTimerEvent) TimerSchedule(org.gluu.service.timer.schedule.TimerSchedule) TimerEvent(org.gluu.service.timer.event.TimerEvent) StatusCheckerTimerEvent(org.gluu.oxtrust.service.cdi.event.StatusCheckerTimerEvent)

Example 7 with TimerSchedule

use of org.gluu.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.gluu.service.timer.schedule.TimerSchedule) TimerEvent(org.gluu.service.timer.event.TimerEvent) MetadataValidationEvent(org.gluu.oxtrust.service.cdi.event.MetadataValidationEvent)

Example 8 with TimerSchedule

use of org.gluu.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.gluu.service.cdi.event.ConfigurationEvent) TimerSchedule(org.gluu.service.timer.schedule.TimerSchedule) TimerEvent(org.gluu.service.timer.event.TimerEvent)

Example 9 with TimerSchedule

use of org.gluu.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.gluu.service.timer.schedule.TimerSchedule) EntityIdMonitoringEvent(org.gluu.oxtrust.service.cdi.event.EntityIdMonitoringEvent) TimerEvent(org.gluu.service.timer.event.TimerEvent)

Example 10 with TimerSchedule

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