Package org.apache.sling.launchpad.app
Enum ControlAction
- All Implemented Interfaces:
Serializable
,Comparable<ControlAction>
The
ControlAction
defines values to used as the action for the
Sling control with the Main.doControlAction()
method.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates the Sling application should be started and a listener should be installed to accept control commands.Indicates to connect to a running Sling application having installed a listener and ask that application about its state.Indicates to connect to a running Sling application having installed a listener and send that application the command to shutdown.Indicates to connect to a running Sling application having installed a listener and ask for a thread dump. -
Method Summary
Modifier and TypeMethodDescriptionstatic ControlAction
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.
-
Enum Constant Details
-
START
Indicates the Sling application should be started and a listener should be installed to accept control commands. -
STOP
Indicates to connect to a running Sling application having installed a listener and send that application the command to shutdown. -
STATUS
Indicates to connect to a running Sling application having installed a listener and ask that application about its state. -
THREADS
Indicates to connect to a running Sling application having installed a listener and ask for a thread dump.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-