Package com.sun.appserv.server
Class LifecycleEvent
java.lang.Object
java.util.EventObject
com.sun.appserv.server.LifecycleEvent
- All Implemented Interfaces:
Serializable
This class defines the types of events that get fired by the application server. It also contains a
LifecycleEventContext that can be used by the lifecycle modules.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Server is initializing subsystems and setting up the runtime environment.static final int
Server is ready to service requestsstatic final int
Server is shutting down applicationsstatic final int
Server is starting up applicationsstatic final int
Server is terminating the subsystems and the runtime environment.Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionLifecycleEvent
(Object source, int eventType, Object eventData, LifecycleEventContext ctx) Construct new lifecycle event -
Method Summary
Modifier and TypeMethodDescriptiongetData()
Get the data associated with the event.int
Get the type of event associated with thisGet the ServerContext generating this lifecycle eventMethods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
INIT_EVENT
public static final int INIT_EVENTServer is initializing subsystems and setting up the runtime environment.- See Also:
-
STARTUP_EVENT
public static final int STARTUP_EVENTServer is starting up applications- See Also:
-
READY_EVENT
public static final int READY_EVENTServer is ready to service requests- See Also:
-
SHUTDOWN_EVENT
public static final int SHUTDOWN_EVENTServer is shutting down applications- See Also:
-
TERMINATION_EVENT
public static final int TERMINATION_EVENTServer is terminating the subsystems and the runtime environment.- See Also:
-
-
Constructor Details
-
LifecycleEvent
Construct new lifecycle event- Parameters:
source
- The object on which the event initially occurredeventType
- type of the eventctx
- the underlying context for the lifecycle event
-
-
Method Details
-
getEventType
public int getEventType()Get the type of event associated with this -
getData
Get the data associated with the event. -
getLifecycleEventContext
Get the ServerContext generating this lifecycle event
-