Package com.sun.appserv.server
Class LifecycleEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.sun.appserv.server.LifecycleEvent
-
- All Implemented Interfaces:
Serializable
public class LifecycleEvent extends EventObject
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
INIT_EVENT
Server is initializing subsystems and setting up the runtime environment.static int
READY_EVENT
Server is ready to service requestsstatic int
SHUTDOWN_EVENT
Server is shutting down applicationsstatic int
STARTUP_EVENT
Server is starting up applicationsstatic int
TERMINATION_EVENT
Server is terminating the subsystems and the runtime environment.-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description LifecycleEvent(Object source, int eventType, Object eventData, LifecycleEventContext ctx)
Construct new lifecycle event
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getData()
Get the data associated with the event.int
getEventType()
Get the type of event associated with thisLifecycleEventContext
getLifecycleEventContext()
Get the ServerContext generating this lifecycle event-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Field Detail
-
INIT_EVENT
public static final int INIT_EVENT
Server is initializing subsystems and setting up the runtime environment.- See Also:
- Constant Field Values
-
STARTUP_EVENT
public static final int STARTUP_EVENT
Server is starting up applications- See Also:
- Constant Field Values
-
READY_EVENT
public static final int READY_EVENT
Server is ready to service requests- See Also:
- Constant Field Values
-
SHUTDOWN_EVENT
public static final int SHUTDOWN_EVENT
Server is shutting down applications- See Also:
- Constant Field Values
-
TERMINATION_EVENT
public static final int TERMINATION_EVENT
Server is terminating the subsystems and the runtime environment.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LifecycleEvent
public LifecycleEvent(Object source, int eventType, Object eventData, LifecycleEventContext ctx)
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 Detail
-
getEventType
public int getEventType()
Get the type of event associated with this
-
getData
public Object getData()
Get the data associated with the event.
-
getLifecycleEventContext
public LifecycleEventContext getLifecycleEventContext()
Get the ServerContext generating this lifecycle event
-
-