org.globus.cog.abstraction.impl.common
Class StatusImpl

java.lang.Object
  extended byorg.globus.cog.abstraction.impl.common.StatusImpl
All Implemented Interfaces:
Status

public class StatusImpl
extends Object
implements Status


Field Summary
 
Fields inherited from interface org.globus.cog.abstraction.interfaces.Status
ACTIVE, CANCELED, COMPLETED, FAILED, RESUMED, SUBMITTED, SUSPENDED, UNKNOWN, UNSUBMITTED
 
Constructor Summary
StatusImpl()
           
StatusImpl(int curStatus)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatusImpl

public StatusImpl()

StatusImpl

public StatusImpl(int curStatus)
Method Detail

setStatusCode

public void setStatusCode(int status)
Description copied from interface: Status
Sets the code of this Status.

Specified by:
setStatusCode in interface Status
Parameters:
status - an integer representing the code of this Status

getStatusCode

public int getStatusCode()
Description copied from interface: Status
Returns the code of this Status

Specified by:
getStatusCode in interface Status

setPrevStatusCode

public void setPrevStatusCode(int status)
Specified by:
setPrevStatusCode in interface Status

getPrevStatusCode

public int getPrevStatusCode()
Specified by:
getPrevStatusCode in interface Status

setException

public void setException(Exception exception)
Description copied from interface: Status
Sets the exception associated with the failure of the ExecutableObject. Valid only if the ExecutableObject has failed.

Specified by:
setException in interface Status

getException

public Exception getException()
Description copied from interface: Status
Returns the exception associated with a failed Status

Specified by:
getException in interface Status

setMessage

public void setMessage(String message)
Description copied from interface: Status
Sets the message associated with the failure of the ExecutableObject. Valid only if the ExecutableObject has failed.

Specified by:
setMessage in interface Status

getMessage

public String getMessage()
Description copied from interface: Status
Returns the message associated with a failed Status

Specified by:
getMessage in interface Status

setTime

public void setTime(Calendar time)
Description copied from interface: Status
Sets the time when the current status changed

Specified by:
setTime in interface Status

getTime

public Calendar getTime()
Description copied from interface: Status
Returns the time when the current status changed.

Specified by:
getTime in interface Status

getStatusString

public String getStatusString()
Description copied from interface: Status
Returns the value of this Status as a String-based description

Specified by:
getStatusString in interface Status
Returns:

getPrevStatusString

public String getPrevStatusString()
Specified by:
getPrevStatusString in interface Status