| HEADER | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
AbstractJobControl is default implementation of JobControl interface. AbstractJobControl provides base functionality of all methods of JobControl
| Constructor Summary | |
AbstractJobControl(Category cat)Constructs JobControl with specified Category | |
AbstractJobControl(Category cat, JobControlListener listener)Constructs JobControl with specified Category and JobControlListener | |
| Method Summary | |
void | addListener(JobControlListener listener) |
void | begin()Derived classes should call this method when they want to start controlled process |
void | checkStatus()Tests status of job control. |
void | end()Sets state defined by runStatus variable. |
void | fireValueChanged()Notifies all listeners that value returned by getPreparedness() is changed |
static String | format(long time)Converts time to the string |
static String | format(long time, String format)Converts time to the specified format string |
long | getCreatedTime() |
long | getElapsedTime() |
long | getEndedTime() |
int | getPreparedness() |
long | getRemainedTime() |
long | getStartedTime() |
int | getStatus() |
String | getTextStatus() |
void | pause()Sets status of job control to the JobControl.PAUSED state |
void | resultsAreReady() |
void | resume()Sets status of job control to the JobControl.RUNNING state |
void | run()Starts the job control process |
void | setPreparedness(int percent)Sets value of job Preparednes |
void | terminate()Sets status of job control to the JobControl.TERMINATED_BY_REQUEST state |
| Constructor Detail |
public AbstractJobControl(Category cat)
public AbstractJobControl(Category cat, JobControlListener listener)
| Method Detail |
public void addListener(JobControlListener listener)
public void begin()
public void checkStatus()
throws JobControlException
public void end()
public void fireValueChanged()
public static String format(long time)
public static String format(long time, String format)
public long getCreatedTime()
public long getElapsedTime()
public long getEndedTime()
public int getPreparedness()
public long getRemainedTime()
public long getStartedTime()
public int getStatus()
public String getTextStatus()
public void pause()
public void resultsAreReady()
public void resume()
public void run()
public void setPreparedness(int percent)
public void terminate()
| Association Links |
log4j.Category to print logs.to Class java.util.Vector
| FOOTER | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||