public class JobRunner
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
JOBKEY
Used to hold the current running job in the connection.
|
| Constructor and Description |
|---|
JobRunner(DBJob job,
JobManager manager)
The constructor
TODO: Configure priority from the XML file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
The job is deleted.
|
DBJob |
getJob()
The actual JOB
|
boolean |
isAlive()
Is this JOB alive ?
|
void |
recordStatus()
Record the status of this JOB
|
void |
run()
run the JOB
|
public static final java.lang.String JOBKEY
public JobRunner(DBJob job, JobManager manager)
job - The JOBmanager - The JOB managerpublic boolean isAlive()
public DBJob getJob()
public void recordStatus()
throws java.lang.Exception
java.lang.Exception - A serious problempublic void cancel()
public void run()
run in interface java.lang.RunnablestSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.