org.codehaus.cargo.container.tomcat.internal
Class TomcatDeployableStatus

java.lang.Object
  extended by org.codehaus.cargo.container.tomcat.internal.TomcatDeployableStatus

public final class TomcatDeployableStatus
extends java.lang.Object

Status of a Deployable deployed in Tomcat. Can be a "running", "stopped", "not found".

Version:
$Id: TomcatDeployableStatus.java 1705 2008-09-02 13:14:55Z adriana $

Field Summary
static TomcatDeployableStatus NOT_FOUND
          The status of the deployable when it doesn't exists in Tomcat.
static TomcatDeployableStatus RUNNING
          The status of the deployable when it's running in Tomcat.
static TomcatDeployableStatus STOPPED
          The status of the deployable when it's stopped in Tomcat.
 
Method Summary
 boolean equals(java.lang.Object object)
          
 java.lang.String getStatus()
           
 int hashCode()
          
static TomcatDeployableStatus toStatus(java.lang.String statusAsString)
          Transform a status represented as a string into a TomcatDeployableStatus object.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RUNNING

public static final TomcatDeployableStatus RUNNING
The status of the deployable when it's running in Tomcat.


STOPPED

public static final TomcatDeployableStatus STOPPED
The status of the deployable when it's stopped in Tomcat.


NOT_FOUND

public static final TomcatDeployableStatus NOT_FOUND
The status of the deployable when it doesn't exists in Tomcat.

Method Detail

toStatus

public static TomcatDeployableStatus toStatus(java.lang.String statusAsString)
Transform a status represented as a string into a TomcatDeployableStatus object.

Parameters:
statusAsString - the string to transform
Returns:
the TomcatDeployableStatus object

equals

public boolean equals(java.lang.Object object)

Overrides:
equals in class java.lang.Object
See Also:
Object.equals(Object)

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

getStatus

public java.lang.String getStatus()
Returns:
the deployable status

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2004-2011 Codehaus. All Rights Reserved.