org.objectweb.jonas.service.Service Interface Reference

Inherited by org.objectweb.jonas.service.AbsServiceImpl.

Inheritance diagram for org.objectweb.jonas.service.Service:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void init (Context ctx) throws ServiceException

Package Functions

void start () throws ServiceException
void stop () throws ServiceException
boolean isStarted ()
void setName (String name)
String getName ()

Detailed Description

This interface defines a Service. Objects which implement this interface must have a public constructor with a string parameter which is the name of the service.

Definition at line 41 of file Service.java.


Member Function Documentation

String org.objectweb.jonas.service.Service.getName  )  [package]
 

Returns:
Returns the service's name

Implemented in org.objectweb.jonas.service.AbsServiceImpl.

Referenced by org.objectweb.jonas.ear.EarServiceImpl.deployEar(), org.objectweb.jonas.service.ServiceManager.startServices(), and org.objectweb.jonas.service.ServiceManager.stopServices().

void org.objectweb.jonas.service.Service.init Context  ctx  )  throws ServiceException
 

Initialize the service

Parameters:
ctx configuration of the service
Exceptions:
ServiceException when init fails.

Implemented in org.objectweb.jonas.service.AbsServiceImpl.

Referenced by org.objectweb.jonas.service.ServiceManager.startJmx(), org.objectweb.jonas.service.ServiceManager.startRegistry(), and org.objectweb.jonas.service.ServiceManager.startServices().

boolean org.objectweb.jonas.service.Service.isStarted  )  [package]
 

Returns:
Returns true if the service is started, false otherwise

Implemented in org.objectweb.jonas.service.AbsServiceImpl.

Referenced by org.objectweb.jonas.service.ServiceManager.stopServices().

void org.objectweb.jonas.service.Service.setName String  name  )  [package]
 

Set the service's name

Parameters:
name the service's name

Implemented in org.objectweb.jonas.service.AbsServiceImpl.

Referenced by org.objectweb.jonas.service.ServiceManager.createServiceFrom().

void org.objectweb.jonas.service.Service.start  )  throws ServiceException [package]
 

Start the service

Exceptions:
ServiceException when start fails.

Implemented in org.objectweb.jonas.service.AbsServiceImpl.

Referenced by org.objectweb.jonas.service.ServiceManager.startJmx(), org.objectweb.jonas.service.ServiceManager.startRegistry(), and org.objectweb.jonas.service.ServiceManager.startServices().

void org.objectweb.jonas.service.Service.stop  )  throws ServiceException [package]
 

Stop the service

Exceptions:
ServiceException when stop fails.

Implemented in org.objectweb.jonas.service.AbsServiceImpl.

Referenced by org.objectweb.jonas.service.ServiceManager.stopServices().


The documentation for this interface was generated from the following file:
Generated on Tue Feb 15 15:08:07 2005 for JOnAS by  doxygen 1.3.9.1