org.rhq.bundle.ant
Enum DeploymentPhase
java.lang.Object
java.lang.Enum<DeploymentPhase>
org.rhq.bundle.ant.DeploymentPhase
- All Implemented Interfaces:
- Serializable, Comparable<DeploymentPhase>
public enum DeploymentPhase
- extends Enum<DeploymentPhase>
A bundle deployment phase. One or more tasks are associated with each phase. The phases are executed as part of
three user-initiated lifecycles:
Deploy: INSTALL,START
Redeploy: STOP,UPGRADE,START
Undeploy: STOP,UNINSTALL
TODO (ips): This should probably be moved to domain or somewhere else not specific to the Ant bundle type.
INSTALL
public static final DeploymentPhase INSTALL
START
public static final DeploymentPhase START
STOP
public static final DeploymentPhase STOP
UPGRADE
public static final DeploymentPhase UPGRADE
UNINSTALL
public static final DeploymentPhase UNINSTALL
DEPLOY_LIFECYCLE
public static final DeploymentPhase[] DEPLOY_LIFECYCLE
REDEPLOY_LIFECYCLE
public static final DeploymentPhase[] REDEPLOY_LIFECYCLE
UNDEPLOY_LIFECYCLE
public static final DeploymentPhase[] UNDEPLOY_LIFECYCLE
values
public static DeploymentPhase[] 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 (DeploymentPhase c : DeploymentPhase.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static DeploymentPhase 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
toString
public String toString()
- Overrides:
toString in class Enum<DeploymentPhase>
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.