Class StoreCompletedModelsJob
- 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.jobs.SequentialBlackboardInteractingJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>
-
- org.palladiosimulator.architecturaltemplates.jobs.StoreCompletedModelsJob
-
- All Implemented Interfaces:
de.uka.ipd.sdq.workflow.jobs.IBlackboardInteractingJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>
,de.uka.ipd.sdq.workflow.jobs.ICompositeJob
,de.uka.ipd.sdq.workflow.jobs.IJob
,Iterable<de.uka.ipd.sdq.workflow.jobs.IJob>
,Collection<de.uka.ipd.sdq.workflow.jobs.IJob>
,List<de.uka.ipd.sdq.workflow.jobs.IJob>
public class StoreCompletedModelsJob extends de.uka.ipd.sdq.workflow.jobs.SequentialBlackboardInteractingJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>
Copies all resources of the partitions defined in the PARTITION_IDS constant to a given model storage location. The latter is a property of this jobs' configuration.
-
-
Constructor Summary
Constructors Constructor Description StoreCompletedModelsJob(ATExtensionJobConfiguration configuration, String folderName, boolean createNewStorageFolder)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(IProgressMonitor monitor)
For each partition of PARTITION_IDS, copies resources to a dedicated a temporary partition for storage and stores all resources to disk.-
Methods inherited from class de.uka.ipd.sdq.workflow.jobs.SequentialBlackboardInteractingJob
getBlackboard, setBlackboard
-
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 Detail
-
StoreCompletedModelsJob
public StoreCompletedModelsJob(ATExtensionJobConfiguration configuration, String folderName, boolean createNewStorageFolder)
Default constructor. Adds an inner job for creating the project for model storage.- Parameters:
configuration
- the configuration object, including the storage project location for copied resourcesfolderName
- name for folder after the MODEL_GEN_FOLDER_NAME folder, e.g., "model-gen/completion/".createNewStorageFolder
-true
if an existing storage folder should be deleted and a new one should be created,false
if an existing folder should be reused.
-
-
Method Detail
-
execute
public void execute(IProgressMonitor monitor) throws de.uka.ipd.sdq.workflow.jobs.JobFailedException, de.uka.ipd.sdq.workflow.jobs.UserCanceledException
For each partition of PARTITION_IDS, copies resources to a dedicated a temporary partition for storage and stores all resources to disk. Note that the copy operation is needed for setting up new URIs for resources to be saved.- Specified by:
execute
in interfacede.uka.ipd.sdq.workflow.jobs.IJob
- Overrides:
execute
in classde.uka.ipd.sdq.workflow.jobs.SequentialBlackboardInteractingJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>
- Parameters:
monitor
- for monitoring the progress of copy and storage.- Throws:
de.uka.ipd.sdq.workflow.jobs.JobFailedException
de.uka.ipd.sdq.workflow.jobs.UserCanceledException
-
-