org.mortbay.jetty.plus
public interface Service extends LifeCycle
Method Summary | |
---|---|
String | getJNDI() |
String | getName() |
boolean | isStarted() |
void | setJNDI(String registration) |
void | setName(String name) |
void | start() Start the LifeCycle. |
void | stop() Stop the LifeCycle.
|
Returns: True if the LifeCycle has been started.
Throws: Exception An arbitrary exception may be thrown.
Throws: 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.