Enum AgentExitCode
- java.lang.Object
-
- java.lang.Enum<AgentExitCode>
-
- jetbrains.buildServer.agent.impl.upgrade.AgentExitCode
-
- All Implemented Interfaces:
Serializable
,Comparable<AgentExitCode>
public enum AgentExitCode extends Enum<AgentExitCode>
- Author:
- Eugene Petrenko Created: 07.06.2008 14:39:41
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
exitApplication()
String
getReason()
static AgentExitCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static AgentExitCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RESTART
public static final AgentExitCode RESTART
-
RESTART_UPGRADE_FAILED
public static final AgentExitCode RESTART_UPGRADE_FAILED
-
RESTART_CONFIG_CHANGE
public static final AgentExitCode RESTART_CONFIG_CHANGE
-
RESTART_JVM_CHANGE
public static final AgentExitCode RESTART_JVM_CHANGE
-
RESTART_PLUGINS_UPDATED
public static final AgentExitCode RESTART_PLUGINS_UPDATED
-
UPGRADE
public static final AgentExitCode UPGRADE
-
EXECUTOR_SHUTDOWN
public static final AgentExitCode EXECUTOR_SHUTDOWN
-
DIE
public static final AgentExitCode DIE
-
DIE_USER_COMMAND
public static final AgentExitCode DIE_USER_COMMAND
-
DIE_NO_PROPERTIES
public static final AgentExitCode DIE_NO_PROPERTIES
-
EXECUTOR_ERROR
public static final AgentExitCode EXECUTOR_ERROR
-
SPRING_ERROR
public static final AgentExitCode SPRING_ERROR
-
START_ERROR
public static final AgentExitCode START_ERROR
-
CORRUPTED_AGENT_ERROR
public static final AgentExitCode CORRUPTED_AGENT_ERROR
-
CLASS_LOADING_ERROR
public static final AgentExitCode CLASS_LOADING_ERROR
-
-
Method Detail
-
values
public static AgentExitCode[] 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 (AgentExitCode c : AgentExitCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AgentExitCode 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
-
getReason
public String getReason()
-
exitApplication
public void exitApplication()
-
-