Package io.zeebe.servicecontainer.impl
Enum ServiceEvent.ServiceEventType
- java.lang.Object
-
- java.lang.Enum<ServiceEvent.ServiceEventType>
-
- io.zeebe.servicecontainer.impl.ServiceEvent.ServiceEventType
-
- All Implemented Interfaces:
Serializable,Comparable<ServiceEvent.ServiceEventType>
- Enclosing class:
- ServiceEvent
public static enum ServiceEvent.ServiceEventType extends Enum<ServiceEvent.ServiceEventType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEPENDENCIES_AVAILABLEFired by the container when all of a service's dependencies are available.DEPENDENCIES_UNAVAILABLEFired by the container when a service's dependencies are about to become unavailableDEPENDENTS_STOPPEDFIRED by the container when a service's dependencies have stoppedSERVICE_INSTALLEDfired by the service when it is installed into the containerSERVICE_REMOVEDfired by the service when it is removed from the containerSERVICE_START_FAILEDfired by the service when it has failed to stopSERVICE_STARTEDfired by the service when it is startedSERVICE_STOPPEDfired by the service when it has stoppedSERVICE_STOPPINGfired by the service when it is about to stop
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServiceEvent.ServiceEventTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ServiceEvent.ServiceEventType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SERVICE_INSTALLED
public static final ServiceEvent.ServiceEventType SERVICE_INSTALLED
fired by the service when it is installed into the container
-
SERVICE_START_FAILED
public static final ServiceEvent.ServiceEventType SERVICE_START_FAILED
fired by the service when it has failed to stop
-
SERVICE_STARTED
public static final ServiceEvent.ServiceEventType SERVICE_STARTED
fired by the service when it is started
-
SERVICE_STOPPING
public static final ServiceEvent.ServiceEventType SERVICE_STOPPING
fired by the service when it is about to stop
-
SERVICE_STOPPED
public static final ServiceEvent.ServiceEventType SERVICE_STOPPED
fired by the service when it has stopped
-
SERVICE_REMOVED
public static final ServiceEvent.ServiceEventType SERVICE_REMOVED
fired by the service when it is removed from the container
-
DEPENDENCIES_AVAILABLE
public static final ServiceEvent.ServiceEventType DEPENDENCIES_AVAILABLE
Fired by the container when all of a service's dependencies are available. If the service has at least one dependency, it means that this dependency has started. If the service has no dependencies, the event is fired immediately, after the service is installed.
-
DEPENDENCIES_UNAVAILABLE
public static final ServiceEvent.ServiceEventType DEPENDENCIES_UNAVAILABLE
Fired by the container when a service's dependencies are about to become unavailable
-
DEPENDENTS_STOPPED
public static final ServiceEvent.ServiceEventType DEPENDENTS_STOPPED
FIRED by the container when a service's dependencies have stopped
-
-
Method Detail
-
values
public static ServiceEvent.ServiceEventType[] 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 (ServiceEvent.ServiceEventType c : ServiceEvent.ServiceEventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServiceEvent.ServiceEventType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-