public interface Job
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FINISHED
String used to set status when a task is finished
|
static java.lang.String |
INITIALIZE |
Modifier and Type | Method and Description |
---|---|
void |
add(StatusListener listener)
Method setStatusListener adds a status listener to this
Process that will be notified whenver the status changes
|
java.lang.String |
getName()
Method getName returns a name for this process that succinctly describes
its action
|
java.lang.String |
getStatus()
Method getStatus is used to indicate the current status of this long
running process
|
boolean |
isFinished()
Method finished allows a process monitor to know if the process is
finished.
|
void |
runJob()
run acts like the run method of Runnable, but is wrapped by the Job
system so that any exceptions are caught and the job is set to
finished.
|
static final java.lang.String FINISHED
static final java.lang.String INITIALIZE
java.lang.String getStatus()
void runJob()
java.lang.String getName()
void add(StatusListener listener)
boolean isFinished()