public void start() { mixCount = 0; started = true; scheduler.submit(mixer, PriorityQueueScheduler.MIXER_MIX_QUEUE); }
/** * Submits next task for the execution */ private void continueExecution() { //increment task index i++; //submit next if the end of the chain not reached yet if (i < task.length && task[i] != null) { scheduler.submit(task[i]); } else if (listener != null) { listener.onTermination(); } }
public void restart() { ttl = heartbeatTime * 600; scheduler.submitHeatbeat(this); }
@Override public void handlerError(Exception e) { if (listener != null) { listener.onException(e); } }
@Override public void onTerminate() { continueExecution(); } }
/** * Starts the chain */ public void start() { //reset index i = 0; //submit first task scheduler.submit(task[0]); }
/** * Queues chain of the tasks for execution. * * @param taskChanin the chain of the tasks */ public void submit(TaskChain taskChain) { taskChain.start(); }
public void activate() { this.active = true; this.start(); }
public void activate() { this.active = true; this.start(); }
public void activate() { this.active = true; this.start(); }
public ServiceScheduler(final Clock wallClock) { this.started = false; this.wallClock = new WallClock(); }
/** * Fires specified event * * @param event the event to fire. */ private void fireEvent(RecorderEventImpl event) { eventSender.event = event; scheduler.submit(eventSender, PriorityQueueScheduler.INPUT_QUEUE); }
public void start() { mixCount = 0; started = true; scheduler.submit(mixer, PriorityQueueScheduler.MIXER_MIX_QUEUE); }