/** * Create a new stage in the master TaskExecutor. * Helpful especially when two consecutive stages have parallel tasks. */ public void requestNewStage() { submitSingleTaskStage(new NullTask()); }
public void doControl() { handleTransitions(); currentTask.doAction(); }
/** * Clear the slave TaskExecutor associated with the given executorKey in the current stage. * @param executorKey */ public void clear(T executorKey) { Task currentStage = masterTaskExecutor.getCurrentTask(); if (currentStage instanceof ParallelTask<?>) { @SuppressWarnings("unchecked") ParallelTask<T> stageOfParallelTasks = (ParallelTask<T>) currentStage; stageOfParallelTasks.clear(executorKey); } }
@Override public boolean isDone() { return pipeLine.isDone(); }
@Override public void doControl() { pipeLine.doControl(); }
public Task getCurrentStage() { return masterTaskExecutor.getCurrentTask(); } }
/** * Remove all the stages from the master TaskExecutor. */ public void clearAll() { masterTaskExecutor.clear(); }
/** * Remove all the stages from the master TaskExecutor except the current stage. */ public void clearAllExceptCurrent() { masterTaskExecutor.clearAllExceptCurrent(); }
/** * Create a new stage in the master TaskExecutor. * Helpful especially when two consecutive stages have parallel tasks. */ public void requestNewStage() { submitSingleTaskStage(new NullTask()); }
public void doControl() { handleTransitions(); currentTask.doAction(); }
@Override public boolean isDone() { return pipeLine.isDone(); }
@Override public void doControl() { pipeLine.doControl(); }
public Task getCurrentStage() { return masterTaskExecutor.getCurrentTask(); } }
@Override public boolean isDone() { // TODO Auto-generated method stub return pipeLine.isDone(); }
@Override public void doControl() { pipeLine.doControl(); }
@Override public boolean isDone() { return pipeLine.isDone(); }
@Override public boolean isDone() { return pipeLine.isDone(); }
@Override public boolean isDone() { return pipeLine.isDone(); }
@Override public boolean isDone() { return pipeLine.isDone(); }
@Override public boolean isDone() { return pipeLine.isDone(); }