Class SavePartitionToDiskJob
java.lang.Object
de.uka.ipd.sdq.workflow.mdsd.blackboard.SavePartitionToDiskJob
- All Implemented Interfaces:
IBlackboardInteractingJob<MDSDBlackboard>
,IJob
public class SavePartitionToDiskJob
extends Object
implements IJob, IBlackboardInteractingJob<MDSDBlackboard>
The Class SavePartitionToDiskJob.
-
Constructor Summary
ConstructorDescriptionSavePartitionToDiskJob
(String partitionID) Instantiates a new save partition to disk job.SavePartitionToDiskJob
(String partitionID, Map<String, Object> saveOptions) Instantiates a new save partition to disk job. -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup
(IProgressMonitor monitor) Clean up all temporary side effects of this job.void
execute
(IProgressMonitor monitor) Execute the job.getName()
Supply a name of this job.void
setBlackboard
(MDSDBlackboard blackboard) Sets the blackboard of this job to the given blackboard.
-
Constructor Details
-
SavePartitionToDiskJob
Instantiates a new save partition to disk job.- Parameters:
partitionID
- the partition id
-
SavePartitionToDiskJob
Instantiates a new save partition to disk job.- Parameters:
partitionID
- the partition idsaveOptions
- the save options
-
-
Method Details
-
execute
Description copied from interface:IJob
Execute the job. In case of an error throw an exception with a meaningful name which can be understood by a user.- Specified by:
execute
in interfaceIJob
- Parameters:
monitor
- the monitor- Throws:
JobFailedException
- the job failedUserCanceledException
- the user has chosen to abort the job
-
getName
Description copied from interface:IJob
Supply a name of this job. This could be used for a progress monitor. -
cleanup
Description copied from interface:IJob
Clean up all temporary side effects of this job. This method will always be called after executing this job to remove automatically created files and to leave the environment in a state in which the whole workflow run can be started again with the same results (i.e. in which executed can be called again). Usually, cleanup is called after the whole workflow is completed to allow other jobs to use intermediate results. In some cases, cleanup can be called earlier. However, in those cases, later jobs might not be able to access the intermediate data anymore.- Specified by:
cleanup
in interfaceIJob
- Parameters:
monitor
- the monitor- Throws:
CleanupFailedException
- Thrown if a critical error occurred during clean up so that the whole workflow should abort cleaning up further jobs.
-
setBlackboard
Description copied from interface:IBlackboardInteractingJob
Sets the blackboard of this job to the given blackboard.- Specified by:
setBlackboard
in interfaceIBlackboardInteractingJob<MDSDBlackboard>
- Parameters:
blackboard
- The blackboard to be used by this job
-