Search in sources :

Example 1 with SvnSyncEvent

use of org.gluu.oxtrust.service.cdi.event.SvnSyncEvent in project oxTrust by GluuFederation.

the class SvnSyncTimer method initTimer.

public void initTimer() {
    log.debug("Initializing SVN Sync Timer");
    if (!appConfiguration.isPersistSVN()) {
        return;
    }
    final int delay = 30;
    final int interval = DEFAULT_INTERVAL;
    timerEvent.fire(new TimerEvent(new TimerSchedule(delay, interval), new SvnSyncEvent(), Scheduled.Literal.INSTANCE));
}
Also used : TimerSchedule(org.xdi.service.timer.schedule.TimerSchedule) SvnSyncEvent(org.gluu.oxtrust.service.cdi.event.SvnSyncEvent) TimerEvent(org.xdi.service.timer.event.TimerEvent)

Aggregations

SvnSyncEvent (org.gluu.oxtrust.service.cdi.event.SvnSyncEvent)1 TimerEvent (org.xdi.service.timer.event.TimerEvent)1 TimerSchedule (org.xdi.service.timer.schedule.TimerSchedule)1