|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An execution status associated with an ExecutableObject.
| Field Summary | |
static int |
ACTIVE
The ExecutableObject is being remotely executed. |
static int |
CANCELED
The execution of the ExecutableObject has been canceled. |
static int |
COMPLETED
Remote execution of the ExecutableObject completed
successfully. |
static int |
FAILED
Remote execution of the ExecutableObject has failed. |
static int |
RESUMED
The remote execution of the suspended ExecutableObject is
being resumed. |
static int |
SUBMITTED
The ExecutableObject is submitted to the remote service
but not yet remotely executed. |
static int |
SUSPENDED
Remote execution of the ExecutableObject is suspended. |
static int |
UNKNOWN
Unknown status. |
static int |
UNSUBMITTED
The ExecutableObject is not submitted to the remote
service. |
| Method Summary | |
Exception |
getException()
Returns the exception associated with a failed Status |
String |
getMessage()
Returns the message associated with a failed Status |
int |
getPrevStatusCode()
|
String |
getPrevStatusString()
|
int |
getStatusCode()
Returns the code of this Status |
String |
getStatusString()
Returns the value of this Status as a String-based
description |
Calendar |
getTime()
Returns the time when the current status changed. |
void |
setException(Exception exception)
Sets the exception associated with the failure of the ExecutableObject. |
void |
setMessage(String message)
Sets the message associated with the failure of the ExecutableObject. |
void |
setPrevStatusCode(int status)
|
void |
setStatusCode(int status)
Sets the code of this Status. |
void |
setTime(Calendar time)
Sets the time when the current status changed |
| Field Detail |
public static final int UNSUBMITTED
ExecutableObject is not submitted to the remote
service.
public static final int SUBMITTED
ExecutableObject is submitted to the remote service
but not yet remotely executed.
public static final int ACTIVE
ExecutableObject is being remotely executed.
public static final int SUSPENDED
ExecutableObject is suspended.
public static final int RESUMED
ExecutableObject is
being resumed.
public static final int FAILED
ExecutableObject has failed.
public static final int CANCELED
ExecutableObject has been canceled.
public static final int COMPLETED
ExecutableObject completed
successfully.
public static final int UNKNOWN
| Method Detail |
public void setStatusCode(int status)
Status.
status - an integer representing the code of this Statuspublic int getStatusCode()
Status
public String getStatusString()
Status as a String-based
description
public void setPrevStatusCode(int status)
public int getPrevStatusCode()
public String getPrevStatusString()
public void setException(Exception exception)
ExecutableObject. Valid only if the
ExecutableObject has failed.
public Exception getException()
Status
public void setMessage(String message)
ExecutableObject. Valid only if the
ExecutableObject has failed.
public String getMessage()
Status
public void setTime(Calendar time)
public Calendar getTime()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||