Package org.eclipse.jetty.util.component
Class FileNoticeLifeCycleListener
- java.lang.Object
-
- org.eclipse.jetty.util.component.FileNoticeLifeCycleListener
-
- All Implemented Interfaces:
java.util.EventListener
,LifeCycle.Listener
public class FileNoticeLifeCycleListener extends java.lang.Object implements LifeCycle.Listener
A LifeCycle Listener that writes state changes to a file.This can be used with the jetty.sh script to wait for successful startup.
-
-
Constructor Summary
Constructors Constructor Description FileNoticeLifeCycleListener(java.lang.String filename)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
lifeCycleFailure(LifeCycle event, java.lang.Throwable cause)
void
lifeCycleStarted(LifeCycle event)
void
lifeCycleStarting(LifeCycle event)
void
lifeCycleStopped(LifeCycle event)
void
lifeCycleStopping(LifeCycle event)
-
-
-
Method Detail
-
lifeCycleStarting
public void lifeCycleStarting(LifeCycle event)
- Specified by:
lifeCycleStarting
in interfaceLifeCycle.Listener
-
lifeCycleStarted
public void lifeCycleStarted(LifeCycle event)
- Specified by:
lifeCycleStarted
in interfaceLifeCycle.Listener
-
lifeCycleFailure
public void lifeCycleFailure(LifeCycle event, java.lang.Throwable cause)
- Specified by:
lifeCycleFailure
in interfaceLifeCycle.Listener
-
lifeCycleStopping
public void lifeCycleStopping(LifeCycle event)
- Specified by:
lifeCycleStopping
in interfaceLifeCycle.Listener
-
lifeCycleStopped
public void lifeCycleStopped(LifeCycle event)
- Specified by:
lifeCycleStopped
in interfaceLifeCycle.Listener
-
-