Methods Summary |
---|
public void | onInitialization(com.sun.enterprise.server.ServerContext sc)Server is initializing admin server and setting up the runtime environment.
Prepare for the beginning of active use of the public methods of admin
server. This method is called before any of the public methods of
admin server are utilized.
if ((serverStatus & STATUS_INITED) == STATUS_INITED) {
throw new IllegalStateException("Admin Server already initialized");
}
AdminService srv = AdminService.createAdminService(sc);
srv.init();
serverStatus = STATUS_INITED;
|
public void | onReady(com.sun.enterprise.server.ServerContext sc)Server has completed loading the services and is ready to serve requests.
AdminService.getAdminService().ready();
serverStatus |= STATUS_READY;
|
public void | onShutdown()Server is shutting down applications
serverStatus |= STATUS_SHUTDOWN;
AdminService.getAdminService().stop();
|
public void | onStartup(com.sun.enterprise.server.ServerContext sc)Server is starting up applications
AdminService.getAdminService().start();
serverStatus |= STATUS_STARTED;
|
public void | onTermination()Server is terminating the subsystems and the runtime environment.
Gracefully terminate the active use of the public methods of this
subsystem. This method should be the last one called on a given
instance of this subsystem.
AdminService.getAdminService().destroy();
serverStatus = STATUS_TERMINATED;
|