Enum Class Operation
- All Implemented Interfaces:
Serializable,Comparable<Operation>,Constable
Note: The order defined here is important and represents the order tasks will be executed. When it comes to bundles, it is important to have the bundles started in the right order as such we have to give priority to installation. We will then uninstall and stop everything else and finish off with starting. This will make sure that we will not have 2 bundles that might provide the same implementation for an API started at the same time.
The update operation is a special operation used by features where, for example, feature
requirements needs to be added or removed to mark the feature as required or not so it will match
the state it was on the original system. By Karaf's design, a required feature can be uninstalled
whereas as a non-required cannot. Since the goal of the profile migratable is to reset the system
in the exact same state it was at the time of export, updating this particular state for features
is also important. We therefore will do so using a final step using the UPDATE
operation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
-
Enum Constant Details
-
INSTALL
-
UNINSTALL
-
STOP
-
START
-
UPDATE
-
-
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
-
getOperatingName
Gets an operating name for this operation (e.g. Starting).- Returns:
- an operating name for this operation
-