Method Summary |
|
void | clearCommand() Clears the command associated with the thread. |
synchronized Command | getCommand() Gets the command associated with this thread. |
public String | getName() |
synchronized boolean | isWorkAssigned() Returns a boolean indicating if work has been assigned to this thread. |
void | processCommand() Processes the command in this thread. |
public void | run() The method polls the container for a new work when the thread is ready
to do work. |
synchronized void | setCommand(Command command) Assigns the command to this thread. |
public void | setLogger(String logFile) Sets the log file. |
public void | setSleepTime(int time) Sets the sleep time for the thread. |
void | setState(String state) Sets the State of the Worker Thread. |
void | stop() Stops the worker thread. |