Class JobStatus


  • public class JobStatus
    extends java.lang.Object
    This class marks the moment when an object of its is created. Also monitors for the end time an exceptions that may occur.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      long end
      The end time of the JobStatus object (in milliseconds).
      java.lang.Exception exception
      The exception attribute of the JobStatus object (in milliseconds).
      java.lang.String name
      The name attribute of the JobStatus object.
      long start
      The start time of the JobStatus object (in milliseconds).
      java.lang.Object thread
      The thread attribute of the JobStatus object.
      java.lang.String threadName
      The thread name attribute of the JobStatus object.
    • Constructor Summary

      Constructors 
      Constructor Description
      JobStatus​(java.lang.String name, java.lang.Object thread)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void end()
      Ends the JobStatus.
      java.lang.String endStatus()
      Returns the ending status of the job.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        public java.lang.String name
        The name attribute of the JobStatus object.
      • thread

        public java.lang.Object thread
        The thread attribute of the JobStatus object.
      • threadName

        public java.lang.String threadName
        The thread name attribute of the JobStatus object.
      • start

        public long start
        The start time of the JobStatus object (in milliseconds).
      • end

        public long end
        The end time of the JobStatus object (in milliseconds).
      • exception

        public java.lang.Exception exception
        The exception attribute of the JobStatus object (in milliseconds).
    • Constructor Detail

      • JobStatus

        public JobStatus​(java.lang.String name,
                         java.lang.Object thread)
        Constructor.
        Parameters:
        name - a name for the object
        thread - a thread object
    • Method Detail

      • end

        public void end()
        Ends the JobStatus.
      • endStatus

        public java.lang.String endStatus()
        Returns the ending status of the job.
        Returns:
        'OK' if no exception has occured, otherwise the string of the exception is returned