org.openqa.jetty.util
Interface LifeCycle

All Known Subinterfaces:
HttpHandler, HttpListener, LogSink, RequestLog, SessionManager
All Known Implementing Classes:
AbstractHttpHandler, AbstractSessionManager, AJP13Listener, CachedContentTestHandler, CollettaProxyHandler, Container, DumpHandler, ErrorPageHandler, ExpiryHandler, FilterHolder, ForwardHandler, HashSessionManager, Holder, HostSocketListener, HTAccessHandler, HttpContext, HttpServer, IO, IPAccessHandler, JsseListener, LifeCycleThread, MsieSslHandler, NCSARequestLog, NotFoundHandler, NullHandler, NullLogSink, OutputStreamLogSink, Pool, ProxyHandler, ProxyHandler, ProxyHandler.SslRelay, ResourceCache, ResourceHandler, RootNotFoundHandler, SecurityHandler, SeleniumDriverResourceHandler, SeleniumHTMLRunnerResultsHandler, Server, ServletHandler, ServletHolder, ServletHttpContext, SetResponseHeadersHandler, SingleTestSuiteResourceHandler, SocketChannelListener, SocketListener, SslListener, StaticContentHandler, SunJsseListener, ThreadedServer, ThreadPool, WebApplicationContext, WebApplicationHandler

public interface LifeCycle

A component LifeCycle. Represents the life cycle interface for an abstract software component.

Version:
$Id: LifeCycle.java,v 1.5 2004/05/09 20:32:49 gregwilkins Exp $
Author:
Greg Wilkins (gregw)

Method Summary
 boolean isStarted()
           
 void start()
          Start the LifeCycle.
 void stop()
          Stop the LifeCycle.
 

Method Detail

start

void start()
           throws java.lang.Exception
Start the LifeCycle.

Throws:
java.lang.Exception - An arbitrary exception may be thrown.

stop

void stop()
          throws java.lang.InterruptedException
Stop the LifeCycle. The LifeCycle may wait for current activities to complete normally, but it can be interrupted.

Throws:
java.lang.InterruptedException - Stopping a lifecycle is rarely atomic and may be interrupted by another thread. If this happens InterruptedException is throw and the component will be in an indeterminant state and should probably be discarded.

isStarted

boolean isStarted()
Returns:
True if the LifeCycle has been started.


Copyright © 2011. All Rights Reserved.