Package org.eclipse.jetty.server
Class StateLifeCycleListener
java.lang.Object
org.eclipse.jetty.server.StateLifeCycleListener
- All Implemented Interfaces:
EventListener
,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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
lifeCycleFailure
(LifeCycle event, Throwable cause) void
lifeCycleStarted
(LifeCycle event) void
lifeCycleStarting
(LifeCycle event) void
lifeCycleStopped
(LifeCycle event) void
lifeCycleStopping
(LifeCycle event) toString()
-
Constructor Details
-
StateLifeCycleListener
- Throws:
IOException
-
-
Method Details
-
lifeCycleStarting
- Specified by:
lifeCycleStarting
in interfaceLifeCycle.Listener
-
lifeCycleStarted
- Specified by:
lifeCycleStarted
in interfaceLifeCycle.Listener
-
lifeCycleFailure
- Specified by:
lifeCycleFailure
in interfaceLifeCycle.Listener
-
lifeCycleStopping
- Specified by:
lifeCycleStopping
in interfaceLifeCycle.Listener
-
lifeCycleStopped
- Specified by:
lifeCycleStopped
in interfaceLifeCycle.Listener
-
toString
-