com.atlassian.bamboo.agent.installer
Enum InstallerCommand

java.lang.Object
  extended by java.lang.Enum<InstallerCommand>
      extended by com.atlassian.bamboo.agent.installer.InstallerCommand
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<InstallerCommand>

public enum InstallerCommand
extends java.lang.Enum<InstallerCommand>

Available installer commands


Enum Constant Summary
CONSOLE
           
INSTALL
           
INSTALL_NT_SERVICE
           
START
           
STATUS
           
STOP
           
UNINSTALL_NT_SERVICE
           
 
Method Summary
static InstallerCommand getCommand(java.lang.String commandString)
           
 java.lang.String getCommandString()
           
 java.lang.String getWindowsExecutable()
           
static boolean isCommandStringLegal(java.lang.String commandString)
           
static InstallerCommand valueOf(java.lang.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.
 
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

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(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getCommandString

public java.lang.String getCommandString()

getWindowsExecutable

public java.lang.String getWindowsExecutable()

isCommandStringLegal

public static boolean isCommandStringLegal(java.lang.String commandString)

getCommand

public static InstallerCommand getCommand(java.lang.String commandString)


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.