Class JobResult

  • All Implemented Interfaces:
    Serializable

    public class JobResult
    extends Object
    implements Serializable
    The result of Job Execution. TODO: should it have parameters?
    Version:
    $Revision$
    Author:
    dale (dale at cs dot waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • JobResult

        public JobResult​(String i)
        New jobresult.
        Parameters:
        i - info string
      • JobResult

        public JobResult​(String i,
                         boolean success)
        New jobresult.
        Parameters:
        i - info string
        success - success?
    • Method Detail

      • toString

        public String toString()
        Get info string.
        Overrides:
        toString in class Object
        Returns:
        info string
      • getSuccess

        public boolean getSuccess()
        Execution successful?
        Returns:
        success?
      • setSuccess

        public void setSuccess​(boolean value)
        Set execution successful.
        Parameters:
        value - was successful?
      • getRetry

        public boolean getRetry()
        Should this job be retried?
        Returns:
        retry job?
      • setRetry

        public void setRetry​(boolean value)
        Set should job be retried on fail.
        Parameters:
        value - retry?