org.mortbay.jetty.plus
Interface Service

All Superinterfaces:
LifeCycle
All Known Implementing Classes:
AbstractDataSourceService, AbstractService, DefaultDataSourceService, JotmService, MailService, TMService

public interface Service
extends LifeCycle


Method Summary
 java.lang.String getJNDI()
           
 java.lang.String getName()
           
 boolean isStarted()
           
 void setJNDI(java.lang.String registration)
           
 void setName(java.lang.String name)
           
 void start()
          Start the LifeCycle.
 void stop()
          Stop the LifeCycle.
 

Method Detail

setJNDI

void setJNDI(java.lang.String registration)

getJNDI

java.lang.String getJNDI()

setName

void setName(java.lang.String name)

getName

java.lang.String getName()

start

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

Specified by:
start in interface 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.

Specified by:
stop in interface LifeCycle
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()
Specified by:
isStarted in interface LifeCycle
Returns:
True if the LifeCycle has been started.


Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.