Enum InstallerCommand
- java.lang.Object
-
- java.lang.Enum<InstallerCommand>
-
- com.atlassian.bamboo.agent.installer.InstallerCommand
-
- All Implemented Interfaces:
Serializable
,Comparable<InstallerCommand>
public enum InstallerCommand extends Enum<InstallerCommand>
Available installer commands
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONSOLE
INSTALL
INSTALL_NT_SERVICE
START
STATUS
STOP
UNINSTALL_NT_SERVICE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InstallerCommand
getCommand(String commandString)
String
getCommandString()
static InstallerCommand
getDefault()
String
getWindowsExecutable()
boolean
isAllowSecurityToken()
static boolean
isCommandStringLegal(String commandString)
static InstallerCommand
valueOf(String name)
Returns the enum constant of this type with the specified name.static InstallerCommand[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONSOLE
public static final InstallerCommand CONSOLE
-
INSTALL
public static final InstallerCommand INSTALL
-
START
public static final InstallerCommand START
-
STOP
public static final InstallerCommand STOP
-
INSTALL_NT_SERVICE
public static final InstallerCommand INSTALL_NT_SERVICE
-
UNINSTALL_NT_SERVICE
public static final InstallerCommand UNINSTALL_NT_SERVICE
-
STATUS
public static final InstallerCommand STATUS
-
-
Method Detail
-
values
public static InstallerCommand[] 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 (InstallerCommand c : InstallerCommand.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InstallerCommand 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
-
getCommandString
public String getCommandString()
-
getWindowsExecutable
public String getWindowsExecutable()
-
isAllowSecurityToken
public boolean isAllowSecurityToken()
-
isCommandStringLegal
public static boolean isCommandStringLegal(String commandString)
-
getCommand
public static InstallerCommand getCommand(String commandString)
-
getDefault
public static InstallerCommand getDefault()
-
-