Enum Subsystem.State
- java.lang.Object
-
- java.lang.Enum<Subsystem.State>
-
- org.osgi.service.subsystem.Subsystem.State
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Subsystem.State>
- Enclosing interface:
- Subsystem
public static enum Subsystem.State extends java.lang.Enum<Subsystem.State>
An enumeration of the possible states of a subsystem.These states are a reflection of what constituent resources are permitted to do and not an aggregation of constituent resource states.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVEThe subsystem is now running.INSTALL_FAILEDThe subsystem failed to install.INSTALLEDThe subsystem is installed but not yet resolved.INSTALLINGThe subsystem is in the process of installing.RESOLVEDThe subsystem is resolved and able to be started.RESOLVINGThe subsystem is in the process of resolving.STARTINGThe subsystem is in the process of starting.STOPPINGThe subsystem is in the process of stopping.UNINSTALLEDThe subsystem is uninstalled and may not be used.UNINSTALLINGThe subsystem is in the process of uninstalling.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Subsystem.StatevalueOf(java.lang.String name)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 Detail
-
INSTALLING
public static final Subsystem.State INSTALLING
The subsystem is in the process of installing.A subsystem is in the
INSTALLINGstate when theinstallmethod 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 theINSTALLEDstate. Otherwise, the subsystem has failed to install and must move to theINSTALL_FAILEDstate.
-
INSTALLED
public static final Subsystem.State INSTALLED
The subsystem is installed but not yet resolved.A subsystem is in the
INSTALLEDstate 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
public static final Subsystem.State INSTALL_FAILED
The subsystem failed to install.A subsystem is in the
INSTALL_FAILEDstate 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
public static final Subsystem.State RESOLVING
The subsystem is in the process of resolving.A subsystem is in the
RESOLVINGstate 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 theRESOLVEDstate. Otherwise, the subsystem has failed to resolve and must move to the INSTALLED state.
-
RESOLVED
public static final Subsystem.State RESOLVED
The subsystem is resolved and able to be started.A subsystem is in the
RESOLVEDstate when all of its content resources are resolved. Note that the subsystem is not active yet.
-
STARTING
public static final Subsystem.State STARTING
The subsystem is in the process of starting.A subsystem is in the
STARTINGstate when itsstartmethod 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 theACTIVEstate. Otherwise, the subsystem has failed to start and must move to theRESOLVEDstate.
-
ACTIVE
public static final Subsystem.State ACTIVE
The subsystem is now running.A subsystem is in the
ACTIVEstate when its content and dependencies have been successfully started.
-
STOPPING
public static final Subsystem.State STOPPING
-
UNINSTALLING
public static final Subsystem.State UNINSTALLING
The subsystem is in the process of uninstalling.A subsystem is in the
UNINSTALLINGstate when itsuninstallmethod 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 theUNINSTALLEDstate.
-
UNINSTALLED
public static final Subsystem.State UNINSTALLED
The subsystem is uninstalled and may not be used.The
UNINSTALLEDstate 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 Detail
-
values
public static Subsystem.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Subsystem.State c : Subsystem.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Subsystem.State valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-