Package fr.gouv.vitam.common.server
Class VitamServerLifeCycle
java.lang.Object
fr.gouv.vitam.common.server.VitamServerLifeCycle
- All Implemented Interfaces:
EventListener
,org.eclipse.jetty.util.component.LifeCycle.Listener
public class VitamServerLifeCycle
extends Object
implements org.eclipse.jetty.util.component.LifeCycle.Listener
VitamServerLifeCycle is used to be able to do actions when server is going to stop or when started
This implementation is for jetty server.
Add this listener using the method addLifeCycleListener of jetty server
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
lifeCycleFailure
(org.eclipse.jetty.util.component.LifeCycle event, Throwable cause) void
lifeCycleStarted
(org.eclipse.jetty.util.component.LifeCycle event) void
lifeCycleStarting
(org.eclipse.jetty.util.component.LifeCycle event) void
lifeCycleStopped
(org.eclipse.jetty.util.component.LifeCycle event) void
lifeCycleStopping
(org.eclipse.jetty.util.component.LifeCycle event)
-
Constructor Details
-
VitamServerLifeCycle
-
-
Method Details
-
lifeCycleStarting
public void lifeCycleStarting(org.eclipse.jetty.util.component.LifeCycle event) - Specified by:
lifeCycleStarting
in interfaceorg.eclipse.jetty.util.component.LifeCycle.Listener
-
lifeCycleStarted
public void lifeCycleStarted(org.eclipse.jetty.util.component.LifeCycle event) - Specified by:
lifeCycleStarted
in interfaceorg.eclipse.jetty.util.component.LifeCycle.Listener
-
lifeCycleFailure
- Specified by:
lifeCycleFailure
in interfaceorg.eclipse.jetty.util.component.LifeCycle.Listener
-
lifeCycleStopping
public void lifeCycleStopping(org.eclipse.jetty.util.component.LifeCycle event) - Specified by:
lifeCycleStopping
in interfaceorg.eclipse.jetty.util.component.LifeCycle.Listener
-
lifeCycleStopped
public void lifeCycleStopped(org.eclipse.jetty.util.component.LifeCycle event) - Specified by:
lifeCycleStopped
in interfaceorg.eclipse.jetty.util.component.LifeCycle.Listener
-