Package org.eclipse.jetty.util.component
Class AbstractLifeCycle
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- All Implemented Interfaces:
LifeCycle
- Direct Known Subclasses:
AbstractEventDriver
,AbstractExtension
,AbstractLeakPreventer
,AcceptRateLimit
,AllowedResourceAliasChecker
,BaseHolder
,ConnectionLimit
,ConnectionStatistics
,ConnectorServer
,ConnectorStatistics
,ContainerLifeCycle
,DebugListener
,HouseKeeper
,LeakDetector
,PathWatcher
,RequestLogWriter
,ReservedThreadExecutor
,Scanner
,ScheduledExecutorScheduler
,ServletContextHandler.Initializer
,SessionTracker
,Slf4jRequestLogWriter
,SpnegoLoginService
,SslContextFactory
,StopLifeCycle
,Sweeper
,TimerScheduler
,UserStore
@ManagedObject("Abstract Implementation of LifeCycle") @Deprecated(since="2021-05-27") public abstract class AbstractLifeCycle extends java.lang.Object implements LifeCycle
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Basic implementation of the life cycle interface for components.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractLifeCycle.AbstractLifeCycleListener
Deprecated.this class is redundant now thatLifeCycle.Listener
has default methods.-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FAILED
Deprecated.static java.lang.String
RUNNING
Deprecated.static java.lang.String
STARTED
Deprecated.static java.lang.String
STARTING
Deprecated.static java.lang.String
STOPPED
Deprecated.static java.lang.String
STOPPING
Deprecated.
-
Constructor Summary
Constructors Constructor Description AbstractLifeCycle()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addLifeCycleListener(LifeCycle.Listener listener)
Deprecated.java.lang.String
getState()
Deprecated.static java.lang.String
getState(LifeCycle lc)
Deprecated.long
getStopTimeout()
Deprecated.boolean
isFailed()
Deprecated.boolean
isRunning()
Deprecated.boolean
isStarted()
Deprecated.boolean
isStarting()
Deprecated.boolean
isStopped()
Deprecated.boolean
isStopping()
Deprecated.void
removeLifeCycleListener(LifeCycle.Listener listener)
Deprecated.void
setStopTimeout(long stopTimeout)
Deprecated.void
start()
Deprecated.Starts the component.void
stop()
Deprecated.Stops the component.java.lang.String
toString()
Deprecated.
-
-
-
Field Detail
-
STOPPED
public static final java.lang.String STOPPED
Deprecated.- See Also:
- Constant Field Values
-
FAILED
public static final java.lang.String FAILED
Deprecated.- See Also:
- Constant Field Values
-
STARTING
public static final java.lang.String STARTING
Deprecated.- See Also:
- Constant Field Values
-
STARTED
public static final java.lang.String STARTED
Deprecated.- See Also:
- Constant Field Values
-
STOPPING
public static final java.lang.String STOPPING
Deprecated.- See Also:
- Constant Field Values
-
RUNNING
public static final java.lang.String RUNNING
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
start
public final void start() throws java.lang.Exception
Deprecated.Description copied from interface:LifeCycle
Starts the component.- Specified by:
start
in interfaceLifeCycle
- Throws:
java.lang.Exception
- If the component fails to start- See Also:
LifeCycle.isStarted()
,LifeCycle.stop()
,LifeCycle.isFailed()
-
stop
public final void stop() throws java.lang.Exception
Deprecated.Description copied from interface:LifeCycle
Stops the component. The component may wait for current activities to complete normally, but it can be interrupted.- Specified by:
stop
in interfaceLifeCycle
- Throws:
java.lang.Exception
- If the component fails to stop- See Also:
LifeCycle.isStopped()
,LifeCycle.start()
,LifeCycle.isFailed()
-
isRunning
public boolean isRunning()
Deprecated.
-
isStarted
public boolean isStarted()
Deprecated.- Specified by:
isStarted
in interfaceLifeCycle
- Returns:
- true if the component has been started.
- See Also:
LifeCycle.start()
,LifeCycle.isStarting()
-
isStarting
public boolean isStarting()
Deprecated.- Specified by:
isStarting
in interfaceLifeCycle
- Returns:
- true if the component is starting.
- See Also:
LifeCycle.isStarted()
-
isStopping
public boolean isStopping()
Deprecated.- Specified by:
isStopping
in interfaceLifeCycle
- Returns:
- true if the component is stopping.
- See Also:
LifeCycle.isStopped()
-
isStopped
public boolean isStopped()
Deprecated.- Specified by:
isStopped
in interfaceLifeCycle
- Returns:
- true if the component has been stopped.
- See Also:
LifeCycle.stop()
,LifeCycle.isStopping()
-
isFailed
public boolean isFailed()
Deprecated.
-
addLifeCycleListener
public void addLifeCycleListener(LifeCycle.Listener listener)
Deprecated.- Specified by:
addLifeCycleListener
in interfaceLifeCycle
-
removeLifeCycleListener
public void removeLifeCycleListener(LifeCycle.Listener listener)
Deprecated.- Specified by:
removeLifeCycleListener
in interfaceLifeCycle
-
getState
@ManagedAttribute(value="Lifecycle State for this instance", readonly=true) public java.lang.String getState()
Deprecated.
-
getState
public static java.lang.String getState(LifeCycle lc)
Deprecated.
-
getStopTimeout
@ManagedAttribute("The stop timeout in milliseconds") public long getStopTimeout()
Deprecated.
-
setStopTimeout
public void setStopTimeout(long stopTimeout)
Deprecated.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-