public class TaskStatusInfo extends Object implements Serializable, RevisionHandler
Modifier and Type | Field and Description |
---|---|
static int |
FAILED |
static int |
FINISHED |
static int |
PROCESSING |
static int |
TO_BE_RUN |
Constructor and Description |
---|
TaskStatusInfo() |
Modifier and Type | Method and Description |
---|---|
int |
getExecutionStatus()
Get the execution status of this Task.
|
String |
getRevision()
Returns the revision string.
|
String |
getStatusMessage()
Get the status message.
|
Object |
getTaskResult()
Get the returnable result of this task.
|
void |
setExecutionStatus(int newStatus)
Set the execution status of this Task.
|
void |
setStatusMessage(String newMessage)
Set the status message.
|
void |
setTaskResult(Object taskResult)
Set the returnable result for this task..
|
public static final int TO_BE_RUN
public static final int PROCESSING
public static final int FAILED
public static final int FINISHED
public void setExecutionStatus(int newStatus)
newStatus
- the new execution status codepublic int getExecutionStatus()
public void setStatusMessage(String newMessage)
newMessage
- the new status messagepublic String getStatusMessage()
public void setTaskResult(Object taskResult)
taskResult
- the new returnable result for the task. null if no
result is returnable.public Object getTaskResult()
public String getRevision()
getRevision
in interface RevisionHandler
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.