|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectvgrid.task.NullTask
public class NullTask
A task that does nothing on the client but to sleep for a certain amount of time. It gets deployed by the server if no other tasks are avaylable. The client creates its own NullTask if it cannot become a task from the server.
| Field Summary | |
|---|---|
static java.lang.String |
ID
|
| Constructor Summary | |
|---|---|
NullTask()
|
|
NullTask(java.lang.String description,
int timeout)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getExecutionHistory()
Returns the execution history of the task. |
java.lang.String |
getId()
Gets the tasks unique id. |
boolean |
isFinished()
Indicates that the task is finished. |
void |
setExecutionHistory(java.lang.String setId)
Sets the tasks execution history. |
void |
setId(java.lang.String setId)
Sets the tasks id. |
void |
takeOneStep()
Executes one step of the task. |
java.lang.String |
toStateString()
Should produce some info about the task and its current state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ID
| Constructor Detail |
|---|
public NullTask()
public NullTask(java.lang.String description,
int timeout)
| Method Detail |
|---|
public void setId(java.lang.String setId)
Task
setId in interface TasksetId - Unique id.public java.lang.String getId()
Task
getId in interface Taskpublic void takeOneStep()
Task
takeOneStep in interface Taskpublic boolean isFinished()
Task
isFinished in interface Taskpublic java.lang.String toStateString()
Task
toStateString in interface Taskpublic java.lang.String getExecutionHistory()
Task
getExecutionHistory in interface Taskpublic void setExecutionHistory(java.lang.String setId)
Task
setExecutionHistory in interface TasksetId - The message to be reported.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||