org.glassfish.deployment.client
Enum DFDeploymentStatus.Status

java.lang.Object
  extended by java.lang.Enum<DFDeploymentStatus.Status>
      extended by org.glassfish.deployment.client.DFDeploymentStatus.Status
All Implemented Interfaces:
Serializable, Comparable<DFDeploymentStatus.Status>
Enclosing class:
DFDeploymentStatus

public static enum DFDeploymentStatus.Status
extends Enum<DFDeploymentStatus.Status>

Possible status for a stage or overall deployment status

Note that ordering from worst to best simplifies comparisons among Status values.


Enum Constant Summary
FAILURE
           
NOTINITIALIZED
           
SUCCESS
           
WARNING
           
 
Method Summary
 boolean isWorseThan(DFDeploymentStatus.Status other)
           
 boolean isWorseThanOrEqual(DFDeploymentStatus.Status other)
           
static DFDeploymentStatus.Status valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DFDeploymentStatus.Status[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FAILURE

public static final DFDeploymentStatus.Status FAILURE

WARNING

public static final DFDeploymentStatus.Status WARNING

SUCCESS

public static final DFDeploymentStatus.Status SUCCESS

NOTINITIALIZED

public static final DFDeploymentStatus.Status NOTINITIALIZED
Method Detail

values

public static DFDeploymentStatus.Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DFDeploymentStatus.Status c : DFDeploymentStatus.Status.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DFDeploymentStatus.Status valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

isWorseThan

public boolean isWorseThan(DFDeploymentStatus.Status other)

isWorseThanOrEqual

public boolean isWorseThanOrEqual(DFDeploymentStatus.Status other)


Copyright © 2012. All Rights Reserved.