Methods Summary |
---|
public void | onInitialization(com.sun.enterprise.server.ServerContext sc)Server is initializing ws mgmt admin service and setting up the runtime
environment.
if ((serverStatus & STATUS_INITED) == STATUS_INITED) {
throw new IllegalStateException(
"WS Mgmt Admin is already initialized");
}
DeploymentEventManager.addListener(new AppServDELImpl());
// register dynamic reconfig listeners
AdminEventListenerRegistry.addEventListener(
WebServiceEndpointEvent.eventType,
new WebServiceEndpointEventListenerImpl());
AdminEventListenerRegistry.addEventListener(
TransformationRuleEvent.eventType,
new TransformationRuleEventListenerImpl());
AdminEventListenerRegistry.addEventListener(
RegistryLocationEvent.eventType,
new RegistryLocationEventListenerImpl());
serverStatus = STATUS_INITED;
|
public void | onReady(com.sun.enterprise.server.ServerContext sc)Server has completed loading the services and is ready to serve requests.
serverStatus |= STATUS_READY;
// registers the global listener with jwsdp runtime
ListenerManager.getInstance().register();
|
public void | onShutdown()Server is shutting down applications.
serverStatus |= STATUS_SHUTDOWN;
// shuts down message trace
MessageTraceMgr msgTraceMgr = MessageTraceMgr.getInstance();
if ( msgTraceMgr != null) {
msgTraceMgr.stop();
}
|
public void | onStartup(com.sun.enterprise.server.ServerContext sc)Server is starting up applications.
serverStatus |= STATUS_STARTED;
// initializes message trace
MessageTraceMgr msgTraceMgr = MessageTraceMgr.getInstance();
if ( msgTraceMgr != null) {
msgTraceMgr.init();
}
|
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.
serverStatus = STATUS_TERMINATED;
|