Package org.opends.server.tools
Enum ConfigureWindowsService.DisableServiceReturnCode
- java.lang.Object
-
- java.lang.Enum<ConfigureWindowsService.DisableServiceReturnCode>
-
- org.opends.server.tools.ConfigureWindowsService.DisableServiceReturnCode
-
- All Implemented Interfaces:
Serializable
,Comparable<ConfigureWindowsService.DisableServiceReturnCode>
- Enclosing class:
- ConfigureWindowsService
public static enum ConfigureWindowsService.DisableServiceReturnCode extends Enum<ConfigureWindowsService.DisableServiceReturnCode>
Return codes for the method disableService.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SERVICE_ALREADY_DISABLED
Return code1
means that the service was already disabled.SERVICE_DISABLE_ERROR
Return code3
means that an unexpected error has occurred.SERVICE_DISABLE_SUCCESS
Return code0
means that the service has been successfully disabled.SERVICE_MARKED_FOR_DELETION
Return code2
means that the service has been marked for deletion.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConfigureWindowsService.DisableServiceReturnCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConfigureWindowsService.DisableServiceReturnCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SERVICE_DISABLE_SUCCESS
public static final ConfigureWindowsService.DisableServiceReturnCode SERVICE_DISABLE_SUCCESS
Return code0
means that the service has been successfully disabled.
-
SERVICE_ALREADY_DISABLED
public static final ConfigureWindowsService.DisableServiceReturnCode SERVICE_ALREADY_DISABLED
Return code1
means that the service was already disabled.
-
SERVICE_MARKED_FOR_DELETION
public static final ConfigureWindowsService.DisableServiceReturnCode SERVICE_MARKED_FOR_DELETION
Return code2
means that the service has been marked for deletion.
-
SERVICE_DISABLE_ERROR
public static final ConfigureWindowsService.DisableServiceReturnCode SERVICE_DISABLE_ERROR
Return code3
means that an unexpected error has occurred.
-
-
Method Detail
-
values
public static ConfigureWindowsService.DisableServiceReturnCode[] 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 (ConfigureWindowsService.DisableServiceReturnCode c : ConfigureWindowsService.DisableServiceReturnCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConfigureWindowsService.DisableServiceReturnCode 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
-
-