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");
}
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");
}
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");
}
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");
}
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");
}
Aggregations