Class PubServerLifeCycleModule

  • All Implemented Interfaces:
    com.sun.appserv.server.LifecycleListener

    public class PubServerLifeCycleModule
    extends java.lang.Object
    implements com.sun.appserv.server.LifecycleListener
    PubServerLifeCycleModule

    - Stores PubServerLifeCycle phase

    - Implemented as Glassfish life-cycle module

    • Constructor Detail

      • PubServerLifeCycleModule

        public PubServerLifeCycleModule()
    • Method Detail

      • handleEvent

        public void handleEvent​(com.sun.appserv.server.LifecycleEvent event)
                         throws com.sun.appserv.server.ServerLifecycleException
        Handler for the Lifecycle events
        Specified by:
        handleEvent in interface com.sun.appserv.server.LifecycleListener
        Parameters:
        event - LifecycleEvent
        Throws:
        com.sun.appserv.server.ServerLifecycleException
      • addStatusObserver

        public static void addStatusObserver​(StatusObserver observer)
        Add a static observer to the life cycle state. Observer be called on any state change.
        Parameters:
        observer -
      • isDomainStarted

        public static boolean isDomainStarted()
        Returns status of application server. The domain is started if all applications known during startup have been attempted to deploy. This does not mean that deployment has succeeded. Application server is running and may accept new (hot) deployments.