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_STARTSent before starting the runtime -
RUNTIME_STARTEDSent after the runtime was started -
RUNTIME_ABOUT_TO_STOPSent before stopping the runtime -
RUNTIME_STOPPEDSent after the runtime stopped
- Author:
- Bogdan Stefanescu
-
-
-
Field Summary
Fields Modifier and Type Field Description intidThe event id.RuntimeServiceruntimestatic intRUNTIME_ABOUT_TO_STARTstatic intRUNTIME_ABOUT_TO_STOPstatic intRUNTIME_STARTEDstatic intRUNTIME_STOPPED
-
Constructor Summary
Constructors Constructor Description RuntimeServiceEvent(int id, RuntimeService runtime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetEventName()Gets the event name as a string.inthashCode()StringtoString()
-
-
-
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
-
-