Package fr.gouv.vitam.common.server
Class VitamServerLifeCycle
- java.lang.Object
-
- fr.gouv.vitam.common.server.VitamServerLifeCycle
-
- All Implemented Interfaces:
java.util.EventListener
,org.eclipse.jetty.util.component.LifeCycle.Listener
public class VitamServerLifeCycle extends java.lang.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
Constructors Constructor Description VitamServerLifeCycle(ProcessLifeCycle processLifeCycle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
lifeCycleFailure(org.eclipse.jetty.util.component.LifeCycle event, java.lang.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 Detail
-
VitamServerLifeCycle
public VitamServerLifeCycle(ProcessLifeCycle processLifeCycle)
-
-
Method Detail
-
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
public void lifeCycleFailure(org.eclipse.jetty.util.component.LifeCycle event, java.lang.Throwable cause)
- 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
-
-