Package org.opends.server.tools
Enum ConfigureWindowsService.ServiceStateReturnCode
- java.lang.Object
-
- java.lang.Enum<ConfigureWindowsService.ServiceStateReturnCode>
-
- org.opends.server.tools.ConfigureWindowsService.ServiceStateReturnCode
-
- All Implemented Interfaces:
Serializable
,Comparable<ConfigureWindowsService.ServiceStateReturnCode>
- Enclosing class:
- ConfigureWindowsService
public static enum ConfigureWindowsService.ServiceStateReturnCode extends Enum<ConfigureWindowsService.ServiceStateReturnCode>
Return codes for the method serviceState.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SERVICE_STATE_DISABLED
Return code1
means that the service state command has indicated that the service is disabled.SERVICE_STATE_ENABLED
Return code0
means that the service state command has indicated that the service is enabled.SERVICE_STATE_ERROR
Return code2
means that an unexpected error has occurred when running the service state command.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConfigureWindowsService.ServiceStateReturnCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConfigureWindowsService.ServiceStateReturnCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SERVICE_STATE_ENABLED
public static final ConfigureWindowsService.ServiceStateReturnCode SERVICE_STATE_ENABLED
Return code0
means that the service state command has indicated that the service is enabled.
-
SERVICE_STATE_DISABLED
public static final ConfigureWindowsService.ServiceStateReturnCode SERVICE_STATE_DISABLED
Return code1
means that the service state command has indicated that the service is disabled.
-
SERVICE_STATE_ERROR
public static final ConfigureWindowsService.ServiceStateReturnCode SERVICE_STATE_ERROR
Return code2
means that an unexpected error has occurred when running the service state command.
-
-
Method Detail
-
values
public static ConfigureWindowsService.ServiceStateReturnCode[] 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.ServiceStateReturnCode c : ConfigureWindowsService.ServiceStateReturnCode.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.ServiceStateReturnCode 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
-
-