|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
dcf.client.Worker
The Worker handle the connection to the server, it recieves new
tasks executes them and returns the result to the server
| Constructor Summary | |
Worker(WorkerGroup parent)
|
|
| Method Summary | |
void |
addMessage(dcf.client.String str)
Add a message to parents message box |
void |
connect()
Connect to the distributer. |
float |
getProgress()
Allows the server to view the task's progress. |
Task |
getTask()
|
void |
go()
The Worker's parent should use this method to start the worker. |
void |
kill()
The worker's parent should use this method to stop the worker. |
void |
run()
|
void |
setProgress(float i)
Sets task's progress |
| Constructor Detail |
public Worker(WorkerGroup parent)
throws dcf.client.RemoteException
| Method Detail |
public void connect()
public void run()
public void go()
public void kill()
public void addMessage(dcf.client.String str)
str - The message to add.public void setProgress(float i)
i - - 0.0 to 1.0 shows the progress of the task.public Task getTask()
public float getProgress()
throws dcf.client.RemoteException
getProgress in interface WorkerIntdcf.client.RemoteException - A remote exception if the Interface cannot be found.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||