Interface Job

    • Method Detail

      • getJobInfo

        String getJobInfo()
        Returns the job info/identifier.
        Returns:
        the info
      • jobCompleted

        void jobCompleted​(Job j,
                          JobResult jr)
        Called once a job has completed execution.
        Parameters:
        j - Job
        jr - Result of Job
      • setJobCompleteListener

        void setJobCompleteListener​(JobCompleteListener l)
        Sets the listener that gets notified when the job got finished.
        Parameters:
        l - the listener
      • getJobCompleteListener

        JobCompleteListener getJobCompleteListener()
        Returns the listener that gets notified when the job got finished.
        Returns:
        the listener, can be null
      • isComplete

        boolean isComplete()
        Whether the job has been finished.
        Returns:
        true if the job has finished, false otherwise
      • execute

        JobResult execute()
        Override to do computation.
        Returns:
        JobResult
      • hasExecutionError

        boolean hasExecutionError()
        Checks whether there was a problem with the job execution.
        Returns:
        true if an error occurred
      • getExecutionError

        String getExecutionError()
        Returns the execution error, if any.
        Returns:
        the error, null if none occurred
      • cleanUp

        void cleanUp()
        Cleans up data structures, frees up memory. Removes dependencies and job parameters.
        Specified by:
        cleanUp in interface CleanUpHandler