Search in sources :

Example 1 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.streamsSwiftlet.getName(), toString() + "/register ...");
    jobGroup = ctx.schedulerSwiftlet.getJobGroup("Streams");
    JobFactory jf = new StreamsJobFactory(ctx);
    jobGroup.addJobFactory(jf.getName(), jf);
    if (ctx.traceSpace.enabled)
        ctx.traceSpace.trace(ctx.streamsSwiftlet.getName(), toString() + "/register done");
}
Also used : JobFactory(com.swiftmq.swiftlet.scheduler.JobFactory)

Example 2 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(topicManager.getName(), toString() + "/register ...");
    jobGroup = schedulerSwiftlet.getJobGroup("Topic Manager");
    JobFactory jf = new DeleteDurableJobFactory(topicManager, ctx.traceSpace, ctx.activeDurableList);
    jobGroup.addJobFactory(jf.getName(), jf);
    if (ctx.traceSpace.enabled)
        ctx.traceSpace.trace(topicManager.getName(), toString() + "/register done");
}
Also used : JobFactory(com.swiftmq.swiftlet.scheduler.JobFactory)

Example 3 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.routingSwiftlet.getName(), toString() + "/register ...");
    jobGroup = ctx.schedulerSwiftlet.getJobGroup("Routing");
    JobFactory jf = new RoutingConnectorJobFactory(ctx);
    jobGroup.addJobFactory(jf.getName(), jf);
    if (ctx.traceSpace.enabled)
        ctx.traceSpace.trace(ctx.routingSwiftlet.getName(), toString() + "/register done");
}
Also used : JobFactory(com.swiftmq.swiftlet.scheduler.JobFactory)

Example 4 with JobFactory

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

the class SchedulerSwiftletImpl method startup.

protected void startup(Configuration config) throws SwiftletException {
    try {
        ctx = new SwiftletContext(this, config);
    } catch (Exception e) {
        throw new SwiftletException(e.toString());
    }
    if (ctx.traceSpace.enabled)
        ctx.traceSpace.trace(getName(), "startup ...");
    ctx.scheduler = new Scheduler(ctx);
    createCalendarAdapter((EntityList) ctx.root.getEntity("calendars"));
    createScheduleAdapter((EntityList) ctx.root.getEntity("schedules"));
    myJobGroup = getJobGroup(SwiftletContext.JOBGROUP);
    JobFactory jf = new MessageSenderJobFactory(ctx);
    myJobGroup.addJobFactory(jf.getName(), jf);
    if (ctx.traceSpace.enabled)
        ctx.traceSpace.trace(getName(), "startup done");
}
Also used : JobFactory(com.swiftmq.swiftlet.scheduler.JobFactory) MessageSenderJobFactory(com.swiftmq.impl.scheduler.standard.job.MessageSenderJobFactory) SwiftletException(com.swiftmq.swiftlet.SwiftletException) MessageSenderJobFactory(com.swiftmq.impl.scheduler.standard.job.MessageSenderJobFactory) SwiftletException(com.swiftmq.swiftlet.SwiftletException) InvalidScheduleException(com.swiftmq.swiftlet.scheduler.InvalidScheduleException)

Example 5 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.storeSwiftlet.getName(), toString() + "/register ...");
    jobGroup = ctx.schedulerSwiftlet.getJobGroup("Store");
    JobFactory jf = new BackupJobFactory(ctx);
    jobGroup.addJobFactory(jf.getName(), jf);
    jf = new ShrinkJobFactory(ctx);
    jobGroup.addJobFactory(jf.getName(), jf);
    if (ctx.traceSpace.enabled)
        ctx.traceSpace.trace(ctx.storeSwiftlet.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