org.globus.cog.abstraction.interfaces
Interface Status

All Known Implementing Classes:
StatusImpl

public interface Status

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

UNSUBMITTED

public static final int UNSUBMITTED
The ExecutableObject is not submitted to the remote service.

See Also:
Constant Field Values

SUBMITTED

public static final int SUBMITTED
The ExecutableObject is submitted to the remote service but not yet remotely executed.

See Also:
Constant Field Values

ACTIVE

public static final int ACTIVE
The ExecutableObject is being remotely executed.

See Also:
Constant Field Values

SUSPENDED

public static final int SUSPENDED
Remote execution of the ExecutableObject is suspended.

See Also:
Constant Field Values

RESUMED

public static final int RESUMED
The remote execution of the suspended ExecutableObject is being resumed.

See Also:
Constant Field Values

FAILED

public static final int FAILED
Remote execution of the ExecutableObject has failed.

See Also:
Constant Field Values

CANCELED

public static final int CANCELED
The execution of the ExecutableObject has been canceled.

See Also:
Constant Field Values

COMPLETED

public static final int COMPLETED
Remote execution of the ExecutableObject completed successfully.

See Also:
Constant Field Values

UNKNOWN

public static final int UNKNOWN
Unknown status.

See Also:
Constant Field Values
Method Detail

setStatusCode

public void setStatusCode(int status)
Sets the code of this Status.

Parameters:
status - an integer representing the code of this Status

getStatusCode

public int getStatusCode()
Returns the code of this Status


getStatusString

public String getStatusString()
Returns the value of this Status as a String-based description

Returns:

setPrevStatusCode

public void setPrevStatusCode(int status)

getPrevStatusCode

public int getPrevStatusCode()

getPrevStatusString

public String getPrevStatusString()

setException

public void setException(Exception exception)
Sets the exception associated with the failure of the ExecutableObject. Valid only if the ExecutableObject has failed.


getException

public Exception getException()
Returns the exception associated with a failed Status


setMessage

public void setMessage(String message)
Sets the message associated with the failure of the ExecutableObject. Valid only if the ExecutableObject has failed.


getMessage

public String getMessage()
Returns the message associated with a failed Status


setTime

public void setTime(Calendar time)
Sets the time when the current status changed


getTime

public Calendar getTime()
Returns the time when the current status changed.