public static enum ConfigureWindowsService.ServiceStateReturnCode extends Enum<ConfigureWindowsService.ServiceStateReturnCode>
Enum Constant and Description |
---|
SERVICE_STATE_DISABLED
Return code
1 means that the service state command has indicated that the service is disabled. |
SERVICE_STATE_ENABLED
Return code
0 means that the service state command has indicated that the service is enabled. |
SERVICE_STATE_ERROR
Return code
2 means that an unexpected error has occurred when running the service state command. |
Modifier and Type | Method and 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.
|
public static final ConfigureWindowsService.ServiceStateReturnCode SERVICE_STATE_ENABLED
0
means that the service state command has indicated that the service is enabled.public static final ConfigureWindowsService.ServiceStateReturnCode SERVICE_STATE_DISABLED
1
means that the service state command has indicated that the service is disabled.public static final ConfigureWindowsService.ServiceStateReturnCode SERVICE_STATE_ERROR
2
means that an unexpected error has occurred when running the service state command.public static ConfigureWindowsService.ServiceStateReturnCode[] values()
for (ConfigureWindowsService.ServiceStateReturnCode c : ConfigureWindowsService.ServiceStateReturnCode.values()) System.out.println(c);
public static ConfigureWindowsService.ServiceStateReturnCode 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.