public enum ControlAction extends Enum<ControlAction>
ControlAction
defines values to used as the action for the
Sling control with the Main.doControlAction()
method.Enum Constant and Description |
---|
START
Indicates the Sling application should be started and a listener should
be installed to accept control commands.
|
STATUS
Indicates to connect to a running Sling application having installed a
listener and ask that application about its state.
|
STOP
Indicates to connect to a running Sling application having installed a
listener and send that application the command to shutdown.
|
THREADS
Indicates to connect to a running Sling application having installed a
listener and ask for a thread dump.
|
Modifier and Type | Method and Description |
---|---|
static ControlAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ControlAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ControlAction START
public static final ControlAction STOP
public static final ControlAction STATUS
public static final ControlAction THREADS
public static ControlAction[] values()
for (ControlAction c : ControlAction.values()) System.out.println(c);
public static ControlAction 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 © 2017 The Apache Software Foundation. All rights reserved.