Package org.opends.server.tools
Enum ConfigureWindowsService.StartServiceReturnCode
- java.lang.Object
-
- java.lang.Enum<ConfigureWindowsService.StartServiceReturnCode>
-
- org.opends.server.tools.ConfigureWindowsService.StartServiceReturnCode
-
- All Implemented Interfaces:
Serializable
,Comparable<ConfigureWindowsService.StartServiceReturnCode>
- Enclosing class:
- ConfigureWindowsService
public static enum ConfigureWindowsService.StartServiceReturnCode extends Enum<ConfigureWindowsService.StartServiceReturnCode>
Return codes for the method startService.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SERVICE_NOT_FOUND
Return code1
means that the service has not been found.SERVICE_START_ERROR
Return code2
means that an unexpected error has occurred.SERVICE_START_SUCCESSFUL
Return code0
means that the service has been successfully started.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConfigureWindowsService.StartServiceReturnCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConfigureWindowsService.StartServiceReturnCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SERVICE_START_SUCCESSFUL
public static final ConfigureWindowsService.StartServiceReturnCode SERVICE_START_SUCCESSFUL
Return code0
means that the service has been successfully started.
-
SERVICE_NOT_FOUND
public static final ConfigureWindowsService.StartServiceReturnCode SERVICE_NOT_FOUND
Return code1
means that the service has not been found.
-
SERVICE_START_ERROR
public static final ConfigureWindowsService.StartServiceReturnCode SERVICE_START_ERROR
Return code2
means that an unexpected error has occurred.
-
-
Method Detail
-
values
public static ConfigureWindowsService.StartServiceReturnCode[] 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.StartServiceReturnCode c : ConfigureWindowsService.StartServiceReturnCode.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.StartServiceReturnCode 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
-
-