com.webhydra.slug.process
Class ProcessStatus

java.lang.Object
  extended by com.webhydra.slug.process.ProcessStatus
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ProcessProgress

public class ProcessStatus
extends java.lang.Object
implements java.io.Serializable

Process status

Author:
rossen
See Also:
Serialized Form

Constructor Summary
ProcessStatus(Status status)
          Creates a new instance of ProcessStatus without message
ProcessStatus(Status status, java.lang.String message)
          Creates a new instance of ProcessStatus
 
Method Summary
 java.lang.String getMessage()
          Getter for property message.
 Status getStatus()
          Getter for property status.
 boolean hasMessage()
          Check if there is a message associated to this instance
 void setMessage(java.lang.String message)
          Setter for property message.
 void setStatus(Status status)
          Setter for property status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessStatus

public ProcessStatus(Status status)
Creates a new instance of ProcessStatus without message

Parameters:
status - process status

ProcessStatus

public ProcessStatus(Status status,
                     java.lang.String message)
Creates a new instance of ProcessStatus

Parameters:
status - process status
message - Message from the process
Method Detail

getStatus

public Status getStatus()
Getter for property status.

Returns:
Value of property status.

setStatus

public void setStatus(Status status)
Setter for property status.

Parameters:
status - New value of property status.

getMessage

public java.lang.String getMessage()
Getter for property message.

Returns:
Value of property message.

setMessage

public void setMessage(java.lang.String message)
Setter for property message.

Parameters:
message - New value of property message.

hasMessage

public boolean hasMessage()
Check if there is a message associated to this instance

Returns:
true if there is a message assighed to this instance