com.ibm.di.server
Class JobStatus

java.lang.Object
  extended by com.ibm.di.server.JobStatus

public class JobStatus
extends 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
 long end
          The end time of the JobStatus object (in milliseconds).
 Exception exception
          The exception attribute of the JobStatus object (in milliseconds).
 String name
          The name attribute of the JobStatus object.
 long start
          The start time of the JobStatus object (in milliseconds).
 Object thread
          The thread attribute of the JobStatus object.
 String threadName
          The thread name attribute of the JobStatus object.
 
Constructor Summary
JobStatus(String name, Object thread)
          Constructor.
 
Method Summary
 void end()
          Ends the JobStatus.
 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 String name
The name attribute of the JobStatus object.


thread

public Object thread
The thread attribute of the JobStatus object.


threadName

public 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 Exception exception
The exception attribute of the JobStatus object (in milliseconds).

Constructor Detail

JobStatus

public JobStatus(String name,
                 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 String endStatus()
Returns the ending status of the job.

Returns:
'OK' if no exception has occured, otherwise the string of the exception is returned