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 Object
implements com.sun.appserv.server.LifecycleListener
PubServerLifeCycleModule
- Stores PubServerLifeCycle phase
- Implemented as Glassfish life-cycle module
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPubServer life-cycle phases -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddStatusObserver(StatusObserver observer) Add a static observer to the life cycle state.Returns current PubServer life-cycle phasevoidhandleEvent(com.sun.appserv.server.LifecycleEvent event) Handler for the Lifecycle eventsstatic booleanReturns status of application server.
-
Field Details
-
result
-
-
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:
handleEventin interfacecom.sun.appserv.server.LifecycleListener- Parameters:
event- LifecycleEvent- Throws:
com.sun.appserv.server.ServerLifecycleException
-
addStatusObserver
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
Returns current PubServer life-cycle phase
-