FileDocCategorySizeDatePackage
AdminChannelLifecycle.javaAPI DocGlassfish v2 API4443Fri May 04 22:33:46 BST 2007com.sun.enterprise.admin.server.core

AdminChannelLifecycle

public class AdminChannelLifecycle extends com.sun.appserv.server.ServerLifecycleImpl
Lifecycle that manages the RMI server that communicates with clients.

Fields Summary
private static final int
NOTINITIALIZED
private static final int
INITIALIZED
private static final int
READY
private static final int
SHUTDOWN
private static int
status
Constructors Summary
Methods Summary
public voidonAbort(int port)
Server startup has failed. This could be due to a port conflict exception. In case of port conflict exception, port will be >0. Set the RMI channel server status to kInstanceFailed.

param
port portnumber

        AdminChannel.setRMIChannelAborting(port);
    
public voidonInitialization(com.sun.enterprise.server.ServerContext context)
Server is Inililize the AdminChannel.

exception
ServerLifecycleException if this subsystem detects a fatal error that prevents this subsystem from being used


                               
       
          
        if (status < INITIALIZED) {
            status = INITIALIZED;
            AdminChannel.createRMIChannel();
            AdminChannel.createSharedSecret();
        }
    
public voidonReady(com.sun.enterprise.server.ServerContext context)
Server is ready.

exception
ServerLifecycleException if this subsystem detects a fatal error that prevents this subsystem from being used

        if (status < READY) {
            status = READY;
            AdminChannel.setRMIChannelReady();
        }
    
public voidonShutdown()
Server is shutting down applications

exception
ServerLifecycleException if this subsystem detects a fatal error that prevents this subsystem from being used

        if (status < SHUTDOWN) {
            status = SHUTDOWN;
            AdminChannel.setRMIChannelStopping();
            AdminChannel.destroyRMIChannel();
        }