org.eclipse.jetty.util.component
类 AbstractLifeCycle
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
- 所有已实现的接口:
- LifeCycle
- 直接已知子类:
- AbstractLeakPreventer, AbstractSessionIdManager, AbstractSessionManager, AggregateLifeCycle, ConnectorServer, ContextDeployer, ExecutorThreadPool, Holder, HttpBuffersImpl, JAASLoginService, MappedLoginService, MBeanContainer, NCSARequestLog, OverlayedAppProvider, PolicyMonitor, PropertyUserStore, QueuedThreadPool, Scanner, ScanningAppProvider, SelectorManager, ServletContainerInitializerListener, SpnegoLoginService, SslContextFactory, ThreadMonitor, ThreadPoolExecutorAdapter, WebAppDeployer, WebSocketFactory
public abstract class AbstractLifeCycle
- extends Object
- implements LifeCycle
Basic implementation of the life cycle interface for components.
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STOPPED
public static final String STOPPED
- 另请参见:
- 常量字段值
FAILED
public static final String FAILED
- 另请参见:
- 常量字段值
STARTING
public static final String STARTING
- 另请参见:
- 常量字段值
STARTED
public static final String STARTED
- 另请参见:
- 常量字段值
STOPPING
public static final String STOPPING
- 另请参见:
- 常量字段值
RUNNING
public static final String RUNNING
- 另请参见:
- 常量字段值
_listeners
protected final CopyOnWriteArrayList<LifeCycle.Listener> _listeners
AbstractLifeCycle
public AbstractLifeCycle()
doStart
protected void doStart()
throws Exception
- 抛出:
Exception
doStop
protected void doStop()
throws Exception
- 抛出:
Exception
start
public final void start()
throws Exception
- 从接口
LifeCycle 复制的描述
- Starts the component.
- 指定者:
- 接口
LifeCycle 中的 start
- 抛出:
Exception - If the component fails to start- 另请参见:
LifeCycle.isStarted(),
LifeCycle.stop(),
LifeCycle.isFailed()
stop
public final void stop()
throws Exception
- 从接口
LifeCycle 复制的描述
- Stops the component.
The component may wait for current activities to complete
normally, but it can be interrupted.
- 指定者:
- 接口
LifeCycle 中的 stop
- 抛出:
Exception - If the component fails to stop- 另请参见:
LifeCycle.isStopped(),
LifeCycle.start(),
LifeCycle.isFailed()
isRunning
public boolean isRunning()
- 指定者:
- 接口
LifeCycle 中的 isRunning
- 返回:
- true if the component is starting or has been started.
isStarted
public boolean isStarted()
- 指定者:
- 接口
LifeCycle 中的 isStarted
- 返回:
- true if the component has been started.
- 另请参见:
LifeCycle.start(),
LifeCycle.isStarting()
isStarting
public boolean isStarting()
- 指定者:
- 接口
LifeCycle 中的 isStarting
- 返回:
- true if the component is starting.
- 另请参见:
LifeCycle.isStarted()
isStopping
public boolean isStopping()
- 指定者:
- 接口
LifeCycle 中的 isStopping
- 返回:
- true if the component is stopping.
- 另请参见:
LifeCycle.isStopped()
isStopped
public boolean isStopped()
- 指定者:
- 接口
LifeCycle 中的 isStopped
- 返回:
- true if the component has been stopped.
- 另请参见:
LifeCycle.stop(),
LifeCycle.isStopping()
isFailed
public boolean isFailed()
- 指定者:
- 接口
LifeCycle 中的 isFailed
- 返回:
- true if the component has failed to start or has failed to stop.
addLifeCycleListener
public void addLifeCycleListener(LifeCycle.Listener listener)
- 指定者:
- 接口
LifeCycle 中的 addLifeCycleListener
removeLifeCycleListener
public void removeLifeCycleListener(LifeCycle.Listener listener)
- 指定者:
- 接口
LifeCycle 中的 removeLifeCycleListener
getState
public String getState()
getState
public static String getState(LifeCycle lc)
Copyright © 2013. All Rights Reserved.