Class 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.
    • Field Summary

      • Fields inherited from class de.uka.ipd.sdq.workflow.jobs.SequentialBlackboardInteractingJob

        myBlackboard
      • 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
    • 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 interface de.uka.ipd.sdq.workflow.jobs.IJob

        cleanup, getName
    • 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 resources
        folderName - 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 interface de.uka.ipd.sdq.workflow.jobs.IJob
        Overrides:
        execute in class de.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