public class TaskStatusInfo extends java.lang.Object implements java.io.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.
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.lang.String |
getStatusMessage()
Get the status message.
|
java.lang.Object |
getTaskResult()
Get the returnable result of this task.
|
void |
setExecutionStatus(int newStatus)
Set the execution status of this Task.
|
void |
setStatusMessage(java.lang.String newMessage)
Set the status message.
|
void |
setTaskResult(java.lang.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(java.lang.String newMessage)
newMessage
- the new status messagepublic java.lang.String getStatusMessage()
public void setTaskResult(java.lang.Object taskResult)
taskResult
- the new returnable result for the task. null if no
result is returnable.public java.lang.Object getTaskResult()
public java.lang.String getRevision()
getRevision
in interface RevisionHandler