Enum Subsystem.State
- All Implemented Interfaces:
Serializable
,Comparable<Subsystem.State>
,java.lang.constant.Constable
- Enclosing interface:
Subsystem
These states are a reflection of what constituent resources are permitted to do and not an aggregation of constituent resource states.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe subsystem is now running.The subsystem failed to install.The subsystem is installed but not yet resolved.The subsystem is in the process of installing.The subsystem is resolved and able to be started.The subsystem is in the process of resolving.The subsystem is in the process of starting.The subsystem is in the process of stopping.The subsystem is uninstalled and may not be used.The subsystem is in the process of uninstalling. -
Method Summary
Modifier and TypeMethodDescriptionstatic Subsystem.State
Returns the enum constant of this type with the specified name.static Subsystem.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTALLING
The subsystem is in the process of installing.A subsystem is in the
INSTALLING
state when theinstall
method of its parent is active, and attempts are being made to install its content resources. If the install method completes without exception, then the subsystem has successfully installed and must move to theINSTALLED
state. Otherwise, the subsystem has failed to install and must move to theINSTALL_FAILED
state. -
INSTALLED
The subsystem is installed but not yet resolved.A subsystem is in the
INSTALLED
state when it has been installed in a parent subsystem but is not or cannot be resolved. This state is visible if the dependencies of the subsystem's content resources cannot be resolved. -
INSTALL_FAILED
The subsystem failed to install.A subsystem is in the
INSTALL_FAILED
state when an unrecoverable error occurred during installation. The subsystem is in an unusable state but references to the subsystem object may still be available and used for introspection. -
RESOLVING
The subsystem is in the process of resolving.A subsystem is in the
RESOLVING
state when attempts are being made to resolve its content resources. If the resolve process completes without exception, then the subsystem has successfully resolved and must move to theRESOLVED
state. Otherwise, the subsystem has failed to resolve and must move to the INSTALLED state. -
RESOLVED
The subsystem is resolved and able to be started.A subsystem is in the
RESOLVED
state when all of its content resources are resolved. Note that the subsystem is not active yet. -
STARTING
The subsystem is in the process of starting.A subsystem is in the
STARTING
state when itsstart
method is active, and attempts are being made to start its content and dependencies. If the start method completes without exception, then the subsystem has successfully started and must move to theACTIVE
state. Otherwise, the subsystem has failed to start and must move to theRESOLVED
state. -
ACTIVE
The subsystem is now running.A subsystem is in the
ACTIVE
state when its content and dependencies have been successfully started. -
STOPPING
-
UNINSTALLING
The subsystem is in the process of uninstalling.A subsystem is in the
UNINSTALLING
state when itsuninstall
method is active, and attempts are being made to uninstall its constituent and dependencies. When the uninstall method completes, the subsystem is uninstalled and must move to theUNINSTALLED
state. -
UNINSTALLED
The subsystem is uninstalled and may not be used.The
UNINSTALLED
state is only visible after a subsystem's constituent and dependencies are uninstalled. The subsystem is in an unusable state but references to the subsystem object may still be available and used for introspection.
-
-
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
-