|
OSGi™ Enterprise Release 5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Subsystem.State> org.osgi.service.subsystem.Subsystem.State
public static 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 | |
---|---|
ACTIVE
The subsystem is now running. |
|
INSTALL_FAILED
The subsystem failed to install. |
|
INSTALLED
The subsystem is installed but not yet resolved. |
|
INSTALLING
The subsystem is in the process of installing. |
|
RESOLVED
The subsystem is resolved and able to be started. |
|
RESOLVING
The subsystem is in the process of resolving. |
|
STARTING
The subsystem is in the process of starting. |
|
STOPPING
The subsystem is in the process of stopping. |
|
UNINSTALLED
The subsystem is uninstalled and may not be used. |
|
UNINSTALLING
The subsystem is in the process of uninstalling. |
Method Summary | |
---|---|
static Subsystem.State |
valueOf(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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Enum Constant Detail |
---|
public static final Subsystem.State INSTALLING
A subsystem is in the INSTALLING
state when the
install
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 the
INSTALLED
state. Otherwise, the subsystem has failed to
install and must move to the INSTALL_FAILED
state.
public static final Subsystem.State INSTALLED
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.
public static final Subsystem.State INSTALL_FAILED
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.
public static final Subsystem.State RESOLVING
A subsystem is in the RESOLVING
state when the
start
method is active, and attempts are
being made to resolve its content resources. If the resolve method
completes without exception, then the subsystem has successfully
resolved and must move to the RESOLVED
state. Otherwise, the
subsystem has failed to resolve and must move to the INSTALLED state.
public static final Subsystem.State RESOLVED
A subsystem is in the RESOLVED
state when all of its content
resources are resolved. Note that the subsystem is not active yet.
public static final Subsystem.State STARTING
A subsystem is in the STARTING
state when its
start
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 the ACTIVE
state. Otherwise, the
subsystem has failed to start and must move to the RESOLVED
state.
public static final Subsystem.State ACTIVE
A subsystem is in the ACTIVE
state when its content and
dependencies have been successfully started.
public static final Subsystem.State STOPPING
A subsystem is in the STOPPING
state when its
stop
method is active, and attempts are
being made to stop its content and dependencies. When the stop method
completes, the subsystem is stopped and must move to the
RESOLVED
state.
public static final Subsystem.State UNINSTALLING
A subsystem is in the UNINSTALLING
state when its
uninstall
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 the UNINSTALLED
state.
public static final Subsystem.State UNINSTALLED
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 Detail |
---|
public static Subsystem.State[] values()
for (Subsystem.State c : Subsystem.State.values()) System.out.println(c);
public static Subsystem.State valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
OSGi™ Enterprise Release 5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |