apollo.Job
Class JobManager

java.lang.Object
  |
  +--apollo.Job.JobManager

public class JobManager
extends java.lang.Object


Field Summary
static int JOB_FAILED
           
static int JOB_FINISHED
           
static int JOB_RUNNING
           
static int JOB_UNINITIALIZED
           
 
Constructor Summary
JobManager(ManagerTracker MT)
           
 
Method Summary
 void destroy()
           
 Job getJob(int jobID)
          Returns the Job object of any job still in the Manager, this includes all running jobs.
 void startJob(Job job)
          This starts the passed job.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JOB_UNINITIALIZED

public static final int JOB_UNINITIALIZED

JOB_RUNNING

public static final int JOB_RUNNING

JOB_FAILED

public static final int JOB_FAILED

JOB_FINISHED

public static final int JOB_FINISHED
Constructor Detail

JobManager

public JobManager(ManagerTracker MT)
Method Detail

startJob

public void startJob(Job job)
This starts the passed job. The passed in Job will have it's ID set by this Manager
Returns:
The JobID of the started job

getJob

public Job getJob(int jobID)
Returns the Job object of any job still in the Manager, this includes all running jobs. If it nolonger in the manager, a database record pointer will be returned instead of the original Job Object.

destroy

public void destroy()