org.nuxeo.runtime
Class RuntimeServiceEvent
java.lang.Object
org.nuxeo.runtime.RuntimeServiceEvent
public class RuntimeServiceEvent
- extends java.lang.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
Note: these events are not supposed to leave the runtime, hence are not declared
serializable.
- Author:
- Bogdan Stefanescu
Method Summary |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getEventName()
Gets the event name as a string. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
RuntimeServiceEvent
public RuntimeServiceEvent(int id,
RuntimeService runtime)
getEventName
public final java.lang.String getEventName()
- Gets the event name as a string.
- Returns:
- the event name
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
Copyright © 2010 Nuxeo SAS. All Rights Reserved.