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