Package com.priint.pubserver.appserver
Class PubServerLifeCycleModule
- java.lang.Object
-
- com.priint.pubserver.appserver.PubServerLifeCycleModule
-
- All Implemented Interfaces:
com.sun.appserv.server.LifecycleListener
public class PubServerLifeCycleModule extends java.lang.Object implements com.sun.appserv.server.LifecycleListenerPubServerLifeCycleModule- Stores PubServerLifeCycle phase
- Implemented as Glassfish life-cycle module
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPubServerLifeCycleModule.PubServerLifeCyclePhasePubServer life-cycle phases
-
Constructor Summary
Constructors Constructor Description PubServerLifeCycleModule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddStatusObserver(StatusObserver observer)Add a static observer to the life cycle state.static PubServerLifeCycleModule.PubServerLifeCyclePhasegetPubServerPhase()Returns current PubServer life-cycle phasevoidhandleEvent(com.sun.appserv.server.LifecycleEvent event)Handler for the Lifecycle eventsstatic booleanisDomainStarted()Returns status of application server.
-
-
-
Method Detail
-
handleEvent
public void handleEvent(com.sun.appserv.server.LifecycleEvent event) throws com.sun.appserv.server.ServerLifecycleExceptionHandler for the Lifecycle events- Specified by:
handleEventin interfacecom.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
-
-