Package org.nuxeo.runtime
Class RuntimeServiceEvent
- java.lang.Object
-
- org.nuxeo.runtime.RuntimeServiceEvent
-
public class RuntimeServiceEvent extends Object
An event in the Nuxeo Runtime life cycle.The following event types are defined:
-
RUNTIME_ABOUT_TO_START
Sent before starting the runtime -
RUNTIME_STARTED
Sent after the runtime was started -
RUNTIME_ABOUT_TO_STOP
Sent before stopping the runtime -
RUNTIME_STOPPED
Sent after the runtime stopped
- Author:
- Bogdan Stefanescu
-
-
-
Field Summary
Fields Modifier and Type Field Description int
id
The event id.RuntimeService
runtime
static int
RUNTIME_ABOUT_TO_START
static int
RUNTIME_ABOUT_TO_STOP
static int
RUNTIME_STARTED
static int
RUNTIME_STOPPED
-
Constructor Summary
Constructors Constructor Description RuntimeServiceEvent(int id, RuntimeService runtime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getEventName()
Gets the event name as a string.int
hashCode()
String
toString()
-
-
-
Field Detail
-
RUNTIME_ABOUT_TO_START
public static final int RUNTIME_ABOUT_TO_START
- See Also:
- Constant Field Values
-
RUNTIME_STARTED
public static final int RUNTIME_STARTED
- See Also:
- Constant Field Values
-
RUNTIME_ABOUT_TO_STOP
public static final int RUNTIME_ABOUT_TO_STOP
- See Also:
- Constant Field Values
-
RUNTIME_STOPPED
public static final int RUNTIME_STOPPED
- See Also:
- Constant Field Values
-
id
public final int id
The event id.
-
runtime
public final RuntimeService runtime
-
-
Constructor Detail
-
RuntimeServiceEvent
public RuntimeServiceEvent(int id, RuntimeService runtime)
-
-
Method Detail
-
getEventName
public final String getEventName()
Gets the event name as a string.- Returns:
- the event name
-
-