|
SunONE Application Server v8.0 PE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ServerLifecycle interface: common lifecycle interface for application server and its subsystems. This interface is implemented by the ApplicationServer and its subsystems such as the web container or EJB container, in order to provide a consistent mechanism for server initialization-startup-shutdown-termination lifecycle.
Method Summary | |
void |
onInitialization(com.sun.enterprise.server.ServerContext sc)
Server is initializing subsystems and setting up the runtime environment. |
void |
onReady(com.sun.enterprise.server.ServerContext sc)
Server has complted loading the applications and is ready to serve requests. |
void |
onShutdown()
Server is shutting down applications |
void |
onStartup(com.sun.enterprise.server.ServerContext sc)
Server is starting up applications |
void |
onTermination()
Server is terminating the subsystems and the runtime environment. |
Method Detail |
public void onInitialization(com.sun.enterprise.server.ServerContext sc) throws ServerLifecycleException
sc
- ServerContext the server runtime context.
java.lang.IllegalStateException
- if this subsystem has already been
started
ServerLifecycleException
- if this subsystem detects a fatal
error that prevents this subsystem from being usedpublic void onStartup(com.sun.enterprise.server.ServerContext sc) throws ServerLifecycleException
sc
- ServerContext the server runtime context.
ServerLifecycleException
- if this subsystem detects a fatal
error that prevents this subsystem from being usedpublic void onReady(com.sun.enterprise.server.ServerContext sc) throws ServerLifecycleException
sc
- ServerContext the server runtime context.
ServerLifecycleException
- if this subsystem detects a fatal
error that prevents this subsystem from being usedpublic void onShutdown() throws ServerLifecycleException
ServerLifecycleException
- if this subsystem detects a fatal
error that prevents this subsystem from being usedpublic void onTermination() throws ServerLifecycleException
ServerLifecycleException
- if this subsystem detects a fatal
error that prevents this subsystem from being used
|
SunONE Application Server v8.0 PE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2003 Sun Microsystems, Inc. All rights reserved.