public enum ComponentState extends Enum<ComponentState>
Enum Constant and Description |
---|
ACTIVE
A component is active when all of the properties of the component are set and the activate method was processed (if there is any) successfully.
|
FAILED
A component is in the failed state if any of the setter the activate or the update method throws a runtime exception or a configuration cannot be applyed due to multiplicity or type issues.
|
FAILED_PERMANENT
The component will be permanently failed if implementation (or metadata) change is necessary to make it work.
|
INACTIVE
The component is not yet initialized or it was removed.
|
STARTING
The component is instantiated and the setters or the activate method of the component is currently processing.
|
STOPPING
The deactivate function of the component is currently running.
|
UNSATISFIED
The component has unsatisfied references.
|
UPDATING_CONFIGURATION
The component instance is just created and new configuration is applied on it.
|
Modifier and Type | Method and Description |
---|---|
static ComponentState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComponentState[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final ComponentState ACTIVE
public static final ComponentState FAILED
public static final ComponentState FAILED_PERMANENT
public static final ComponentState INACTIVE
public static final ComponentState STARTING
public static final ComponentState STOPPING
STOPPING
can be caused due to several reasons:
STARTING
or ACTIVE
state and there was a failure. In the end of STOPPING, the component will get the FAILED
or state.ACTIVE
and one of the references became unsatisfied.public static final ComponentState UNSATISFIED
public static final ComponentState UPDATING_CONFIGURATION
FAILED
and new configuration arrivedUNSATISFIED
and new configuration arrivedACTIVE
but it had to be stopped to apply non-dynamic changes. In this case the component class is re-instantiated.public static ComponentState[] values()
for (ComponentState c : ComponentState.values()) System.out.println(c);
public static ComponentState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2011–2016 Everit Kft.. All rights reserved.