public class LifecycleEvent extends EventObject
| Modifier and Type | Field and Description |
|---|---|
static int |
INIT_EVENT
Server is initializing subsystems and setting up the runtime environment.
|
static int |
READY_EVENT
Server is ready to service requests
|
static int |
SHUTDOWN_EVENT
Server is shutting down applications
|
static int |
STARTUP_EVENT
Server is starting up applications
|
static int |
TERMINATION_EVENT
Server is terminating the subsystems and the runtime environment.
|
source| Constructor and Description |
|---|
LifecycleEvent(Object source,
int eventType,
Object eventData,
LifecycleEventContext ctx)
Construct new lifecycle event
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getData()
Get the data associated with the event.
|
int |
getEventType()
Get the type of event associated with this
|
LifecycleEventContext |
getLifecycleEventContext()
Get the ServerContext generating this lifecycle event
|
getSource, toStringpublic static final int INIT_EVENT
public static final int STARTUP_EVENT
public static final int READY_EVENT
public static final int SHUTDOWN_EVENT
public static final int TERMINATION_EVENT
public LifecycleEvent(Object source, int eventType, Object eventData, LifecycleEventContext ctx)
source - The object on which the event initially occurredeventType - type of the eventctx - the underlying context for the lifecycle eventpublic int getEventType()
public Object getData()
public LifecycleEventContext getLifecycleEventContext()
Copyright © 2017–2020 Eclipse Foundation. All rights reserved.