Enum UpgradeOutcome
- java.lang.Object
-
- java.lang.Enum<UpgradeOutcome>
-
- jetbrains.buildServer.agent.impl.upgrade.UpgradeOutcome
-
- All Implemented Interfaces:
Serializable
,Comparable<UpgradeOutcome>
public enum UpgradeOutcome extends Enum<UpgradeOutcome>
Created by Eugene Petrenko (eugene.petrenko@gmail.com) Date: 31.08.11 17:16
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CALL_LAUNCHER_UPGRADE
Full upgrade is needed with help of launcher upgrade procedureNO_AGENT_RESTART
Upgrade is applied and the agent restart is not neededRESTART_AGENT
Upgrade is applied, what is needed is to simply restart build agent
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UpgradeOutcome
valueOf(String name)
Returns the enum constant of this type with the specified name.static UpgradeOutcome[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_AGENT_RESTART
public static final UpgradeOutcome NO_AGENT_RESTART
Upgrade is applied and the agent restart is not needed
-
RESTART_AGENT
public static final UpgradeOutcome RESTART_AGENT
Upgrade is applied, what is needed is to simply restart build agent
-
CALL_LAUNCHER_UPGRADE
public static final UpgradeOutcome CALL_LAUNCHER_UPGRADE
Full upgrade is needed with help of launcher upgrade procedure
-
-
Method Detail
-
values
public static UpgradeOutcome[] 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 (UpgradeOutcome c : UpgradeOutcome.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UpgradeOutcome 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 nameNullPointerException
- if the argument is null
-
-