Search in sources :

Example 6 with JobFactory

use of com.swiftmq.swiftlet.scheduler.JobFactory in project swiftmq-ce by iitsoftware.

the class JobRegistrar method register.

public void register() {
    if (ctx.traceSpace.enabled)
        ctx.traceSpace.trace(ctx.queueManager.getName(), toString() + "/register ...");
    jobGroup = ctx.schedulerSwiftlet.getJobGroup("Queue Manager");
    JobFactory jf = new QueuePurgerJobFactory(ctx);
    jobGroup.addJobFactory(jf.getName(), jf);
    jf = new MultiQueuePurgerJobFactory(ctx);
    jobGroup.addJobFactory(jf.getName(), jf);
    jf = new QueueMoverJobFactory(ctx);
    jobGroup.addJobFactory(jf.getName(), jf);
    jf = new QueueCleanupJobFactory(ctx);
    jobGroup.addJobFactory(jf.getName(), jf);
    jf = new QueueCleanupDLQJobFactory(ctx);
    jobGroup.addJobFactory(jf.getName(), jf);
    jf = new QueueResetJobFactory(ctx);
    jobGroup.addJobFactory(jf.getName(), jf);
    if (ctx.traceSpace.enabled)
        ctx.traceSpace.trace(ctx.queueManager.getName(), toString() + "/register done");
}
Also used : JobFactory(com.swiftmq.swiftlet.scheduler.JobFactory)

Aggregations

JobFactory (com.swiftmq.swiftlet.scheduler.JobFactory)6 MessageSenderJobFactory (com.swiftmq.impl.scheduler.standard.job.MessageSenderJobFactory)1 SwiftletException (com.swiftmq.swiftlet.SwiftletException)1 InvalidScheduleException (com.swiftmq.swiftlet.scheduler.InvalidScheduleException)1