public interface JobSetupService
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupJobDirectory(java.nio.file.Path jobDirectory,
CleanupStrategy cleanupStrategy)
Performs post-execution cleanup of the job directory.
|
java.io.File |
createJobDirectory(JobSpecification jobSpecification)
Creates a directory for the given job.
|
java.io.File |
createJobScript(JobSpecification jobSpecification,
java.io.File jobDirectory)
Creates the executable script that executes setup and runs the job (a.k.a.
|
java.util.Set<java.io.File> |
downloadJobResources(JobSpecification jobSpecification,
java.io.File jobDirectory)
Downloads and stages all the job files (dependencies, configurations, ...) into the job directory.
|
java.io.File createJobDirectory(JobSpecification jobSpecification) throws SetUpJobException
jobSpecification - the job specificationSetUpJobException - if the folder (or sub-folders) could not be created or already existedjava.util.Set<java.io.File> downloadJobResources(JobSpecification jobSpecification, java.io.File jobDirectory) throws SetUpJobException
jobSpecification - the job specificationjobDirectory - the job folderSetUpJobException - TODOjava.io.File createJobScript(JobSpecification jobSpecification, java.io.File jobDirectory) throws SetUpJobException
jobSpecification - the job specificationjobDirectory - the job directorySetUpJobException - if the file cannot be createdvoid cleanupJobDirectory(java.nio.file.Path jobDirectory,
CleanupStrategy cleanupStrategy)
throws java.io.IOException
jobDirectory - the job directory pathcleanupStrategy - the cleanup strategyjava.io.IOException - TODO