cgl.narada.service
Class Task
java.lang.Object
cgl.narada.service.Task
public class Task
- extends Object
This is a class which allows you to track the status of completion of a
task
|
Constructor Summary |
protected |
Task(long taskId)
|
NOT_STARTED
public static final int NOT_STARTED
- See Also:
- Constant Field Values
IN_PROGRESS
public static final int IN_PROGRESS
- See Also:
- Constant Field Values
COMPLETED
public static final int COMPLETED
- See Also:
- Constant Field Values
Task
protected Task(long taskId)
getTaskId
public long getTaskId()
getTaskDescription
public String getTaskDescription()
getStatus
public int getStatus()
hasSubTasks
public boolean hasSubTasks()
getNumOfSubTasks
public int getNumOfSubTasks()
getSubTask
public Task getSubTask(int subTaskNum)
- The sub task numbering starts at 0
getNumOfWorkUnits
public int getNumOfWorkUnits()
getNumOfWorkUnitsCompleted
public int getNumOfWorkUnitsCompleted()
addSubTask
protected void addSubTask(Task subTask)
setNumOfSubTasks
protected void setNumOfSubTasks(int numOfSubTasks)
setTaskDescription
protected void setTaskDescription(String description)
setNumOfWorkUnits
protected void setNumOfWorkUnits(int numOfWorkUnits)
setNumOfWorkUnitsCompleted
protected void setNumOfWorkUnitsCompleted(int numOfWorkUnitsCompleted)
toString
public String toString()
- Overrides:
toString in class Object
For comments and suggestions please send
e-mail to
The NaradaBrokering Project