public static enum ConfigureWindowsService.EnableServiceReturnCode extends Enum<ConfigureWindowsService.EnableServiceReturnCode>
Enum Constant and Description |
---|
SERVICE_ALREADY_ENABLED
Return code
1 means that the service was already enabled. |
SERVICE_ENABLE_ERROR
Return code
3 means that an unexpected error has occurred. |
SERVICE_ENABLE_SUCCESS
Return code
0 means that the service has been successfully enabled. |
SERVICE_NAME_ALREADY_IN_USE
Return code
2 means that the service is already in use. |
Modifier and Type | Method and Description |
---|---|
static ConfigureWindowsService.EnableServiceReturnCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConfigureWindowsService.EnableServiceReturnCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConfigureWindowsService.EnableServiceReturnCode SERVICE_ENABLE_SUCCESS
0
means that the service has been successfully enabled.public static final ConfigureWindowsService.EnableServiceReturnCode SERVICE_ALREADY_ENABLED
1
means that the service was already enabled.public static final ConfigureWindowsService.EnableServiceReturnCode SERVICE_NAME_ALREADY_IN_USE
2
means that the service is already in use.public static final ConfigureWindowsService.EnableServiceReturnCode SERVICE_ENABLE_ERROR
3
means that an unexpected error has occurred.public static ConfigureWindowsService.EnableServiceReturnCode[] values()
for (ConfigureWindowsService.EnableServiceReturnCode c : ConfigureWindowsService.EnableServiceReturnCode.values()) System.out.println(c);
public static ConfigureWindowsService.EnableServiceReturnCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright 2010-2020 ForgeRock AS.