Class MWE2SequentialJob
java.lang.Object
de.uka.ipd.sdq.workflow.jobs.AbstractJob
de.uka.ipd.sdq.workflow.jobs.AbstractCompositeJob
de.uka.ipd.sdq.workflow.jobs.SequentialJob
de.uka.ipd.sdq.workflow.mdsd.xtext.MWE2SequentialJob
- All Implemented Interfaces:
ICompositeJob
,IJob
,Iterable<IJob>
,Collection<IJob>
,List<IJob>
- Direct Known Subclasses:
XTextGeneratorBlackboardJob
,XTextGeneratorJob
SequentialJob for MWE2 WorkflowComponents.
It executes xtext specific pre and post jobs for model transformation setup and tear down.
-
Field Summary
Fields inherited from class de.uka.ipd.sdq.workflow.jobs.AbstractCompositeJob
myExecutedJobs, myJobs
Fields inherited from class de.uka.ipd.sdq.workflow.jobs.AbstractJob
logger
-
Constructor Summary
ConstructorDescriptionDefault model workflow job constructor.MWE2SequentialJob
(boolean cleanUpImmediately) Instantiates a new model workflow job, specifying the clean up strategy.MWE2SequentialJob
(String name) Instantiates a new model workflow job with a specific name.MWE2SequentialJob
(String name, boolean cleanUpImmediately) Instantiates a new model workflow job with a specific name and specifying the clean up strategy. -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(IProgressMonitor monitor) Execute a mdsd job sequence with the following steps: Run the pre jobs. Execute the real jobs. Run the post jobs. Executes all contained jobs, i.e.Methods inherited from class de.uka.ipd.sdq.workflow.jobs.SequentialJob
cleanup, executeWithDelayedCleanUp, executeWithImmediateCleanUp
Methods inherited from class de.uka.ipd.sdq.workflow.jobs.AbstractCompositeJob
add, add, addAll, addAll, addFirst, addJob, addLast, clear, clone, contains, containsAll, descendingIterator, element, equals, get, getFirst, getLast, getName, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeAll, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, retainAll, set, setName, size, subList, toArray, toArray, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
replaceAll, sort, spliterator
-
Constructor Details
-
MWE2SequentialJob
public MWE2SequentialJob()Default model workflow job constructor. -
MWE2SequentialJob
Instantiates a new model workflow job with a specific name.- Parameters:
name
- The name of the job.
-
MWE2SequentialJob
public MWE2SequentialJob(boolean cleanUpImmediately) Instantiates a new model workflow job, specifying the clean up strategy.- Parameters:
cleanUpImmediately
- Flag if jobs should be cleaned up immediately or not.
-
MWE2SequentialJob
Instantiates a new model workflow job with a specific name and specifying the clean up strategy.- Parameters:
name
- The name of the job sequence.cleanUpImmediately
- Flag if jobs should be cleaned up immediately or not.
-
-
Method Details
-
execute
Execute a mdsd job sequence with the following steps:- Run the pre jobs.
- Execute the real jobs.
- Run the post jobs.
- Specified by:
execute
in interfaceIJob
- Overrides:
execute
in classSequentialJob
- Parameters:
monitor
- the monitor- Throws:
JobFailedException
- the job failed exceptionUserCanceledException
- the user canceled exception
-