Interface JobProcess<P extends JobParameters>
- Type Parameters:
- P- The type of the parameters
- All Known Implementing Classes:
- PyNNJobProcess
public interface JobProcess<P extends JobParameters>
An interface to an executable job process type.
- 
Method SummaryModifier and TypeMethodDescriptionvoidcleanup()Cleans up the job, removing any associated files.voidexecute(String machineUrl, SpinnakerMachine machine, P parameters, LogWriter logWriter) Executes the job.getError()Gets any errors returned by the job.Gets any outputs from the job.Gets any provenance data from the job.Gets the status of the job.
- 
Method Details- 
executeExecutes the job.- Parameters:
- machineUrl- The URL to request a machine using (or- nullif machine is given)
- machine- The machine to execute the job on (or- nullif a URL is given)
- parameters- The parameters of the job
- logWriter- Somewhere to write logs to
 
- 
getStatusStatus getStatus()Gets the status of the job.- Returns:
- The status
 
- 
getErrorThrowable getError()Gets any errors returned by the job. If the status is not Error, this should returnnull- Returns:
- An error, or nullif no error
 
- 
getOutputsGets any outputs from the job. Should always return a list, but this list can be empty if there are no outputs.- Returns:
- A list of output files.
 
- 
getProvenanceList<ProvenanceItem> getProvenance()Gets any provenance data from the job. Should always return a list, but this map can be empty if there is no provenance.- Returns:
- A list of provenance items to add
 
- 
cleanupvoid cleanup()Cleans up the job, removing any associated files.
 
-