Class PubServerLifeCycleModule

java.lang.Object
com.priint.pubserver.appserver.PubServerLifeCycleModule
All Implemented Interfaces:
com.sun.appserv.server.LifecycleListener

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

- Stores PubServerLifeCycle phase

- Implemented as Glassfish life-cycle module

  • Field Details

  • Constructor Details

    • PubServerLifeCycleModule

      public PubServerLifeCycleModule()
  • Method Details

    • 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.
    • getPubServerPhase

      public static PubServerLifeCycleModule.PubServerLifeCyclePhase getPubServerPhase()
      Returns current PubServer life-cycle phase