org.objectweb.jonas.service
Interface Service

All Known Subinterfaces:
DataBaseService, EarService, EJBService, JettyService, JmsService, JmxService, MailService, RegistryService, ResourceService, SecurityService, TomcatService, TransactionService
All Known Implementing Classes:
AbsServiceImpl

public interface Service


Method Summary
 java.lang.String getName()
          Returns the service's name
 void init(javax.naming.Context ctx)
          Initialize the service
 boolean isStarted()
          Returns true if the service is started, false otherwise
 void setName(java.lang.String name)
          Set the service's name
 void start()
          Start the service
 void stop()
          Stop the service
 

Method Detail

init

public void init(javax.naming.Context ctx)
          throws ServiceException
Initialize the service
Parameters:
ctx - configuration of the service

start

public void start()
           throws ServiceException
Start the service

stop

public void stop()
          throws ServiceException
Stop the service

isStarted

public boolean isStarted()
Returns true if the service is started, false otherwise

setName

public void setName(java.lang.String name)
Set the service's name

getName

public java.lang.String getName()
Returns the service's name