|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.experiment.TaskStatusInfo
A class holding information for tasks being executed on RemoteEngines. Also holds an object encapsulating any returnable result produced by the task (Note: result object must be serializable). Task objects execute methods return instances of this class. RemoteEngines also use this class for storing progress information for tasks that they execute.
Field Summary | |
static int |
FAILED
|
static int |
FINISHED
|
private int |
m_ExecutionStatus
Holds current execution status. |
private java.lang.String |
m_StatusMessage
Holds current status message. |
private java.lang.Object |
m_TaskResult
Holds task result. |
static int |
PROCESSING
|
static int |
TO_BE_RUN
|
Constructor Summary | |
TaskStatusInfo()
|
Method Summary | |
int |
getExecutionStatus()
Get the execution status of this Task. |
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.. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TO_BE_RUN
public static final int PROCESSING
public static final int FAILED
public static final int FINISHED
private int m_ExecutionStatus
private java.lang.String m_StatusMessage
private java.lang.Object m_TaskResult
Constructor Detail |
public TaskStatusInfo()
Method Detail |
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()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |