public abstract class AbstractJob extends java.lang.Object implements Job, java.lang.Runnable
FINISHED, INITIALIZE
Constructor and Description |
---|
AbstractJob(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
add(StatusListener listener)
Method addStatusListener 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 Job
|
boolean |
isFinished()
Method finished allows a process monitor to know if the process is
finished.
|
void |
run() |
protected void |
setFinished() |
protected void |
setFinished(boolean finished) |
void |
setStatus(java.lang.String status) |
public void run()
run
in interface java.lang.Runnable
public java.lang.String getStatus()
public void setStatus(java.lang.String status)
public java.lang.String getName()
public void add(StatusListener listener)
public boolean isFinished()
Job
isFinished
in interface Job
protected void setFinished()
protected void setFinished(boolean finished)