public static enum Subsystem.State extends java.lang.Enum<Subsystem.State>
These states are a reflection of what constituent resources are permitted to do and not an aggregation of constituent resource states.
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 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 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
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.
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 namejava.lang.NullPointerException
- if the argument is nullCopyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0