Enum Class ServerShell.Supervisor
- All Implemented Interfaces:
Serializable, Comparable<ServerShell.Supervisor>, Constable
- Enclosing class:
ServerShell
Who supervises the server process: what relaunches it when it exits with
ServerExit.RESTART, and runs the updater first at ServerExit.UPDATE_RESTART. Named by the start option -supervisor script|wrapper|iiziGo; absent means unsupervised, and a restart is then refused rather than leaving a dead server.- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptioniiziGo, which relaunches its development-server launch configuration: a restart, never an update (the iiziGo-bundled server is pure development).No supervisor: the server cannot restart itself.The POSIXiiziServer.shloop or the WindowsiiziServer.batloop.The Java service wrapper under SrvAny: a Windows service.Field Summary
FieldsMethod Summary
Modifier and TypeMethodDescriptionstatic ServerShell.SupervisorParses the value of the start option, case insensitive.static ServerShell.SupervisorReturns the enum constant of this class with the specified name.static ServerShell.Supervisor[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
NONE
No supervisor: the server cannot restart itself.SCRIPT
The POSIXiiziServer.shloop or the WindowsiiziServer.batloop.WRAPPER
The Java service wrapper under SrvAny: a Windows service.IIZIGO
iiziGo, which relaunches its development-server launch configuration: a restart, never an update (the iiziGo-bundled server is pure development).
Field Details
option
The value of the start option.
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
parse
Parses the value of the start option, case insensitive.- Parameters:
value- The value of-supervisor.- Returns:
- The supervisor, or null for an unknown value (
NONEis not an option value).