org.objectweb.jonas.service.AbsServiceImpl Class Reference

Inherits org.objectweb.jonas.service.Service.

Inherited by org.objectweb.jonas.service.AbsDynamicServiceImpl.

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

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas.service.AbsServiceImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void init (Context ctx) throws ServiceException
void start () throws ServiceException
void stop () throws ServiceException
boolean isStarted ()
String getName ()
void setName (String name)
String getDomainName ()
String getJonasServerName ()

Protected Member Functions

abstract void doInit (Context ctx) throws ServiceException
abstract void doStart () throws ServiceException
abstract void doStop () throws ServiceException

Detailed Description

Abstract implementation of a Service

Definition at line 35 of file AbsServiceImpl.java.


Member Function Documentation

abstract void org.objectweb.jonas.service.AbsServiceImpl.doInit Context  ctx  )  throws ServiceException [protected, pure virtual]
 

Abstract initialization method to be implemented by sub-classes

Parameters:
ctx configuration of the service
Exceptions:
ServiceException service initialization failed

abstract void org.objectweb.jonas.service.AbsServiceImpl.doStart  )  throws ServiceException [protected, pure virtual]
 

Abstract start-up method to be implemented by sub-classes

Exceptions:
ServiceException service start-up failed

Implemented in org.objectweb.jonas.service.AbsDynamicServiceImpl.

abstract void org.objectweb.jonas.service.AbsServiceImpl.doStop  )  throws ServiceException [protected, pure virtual]
 

Abstract method for service stopping to be implemented by sub-classes

Exceptions:
ServiceException service stopping failed

String org.objectweb.jonas.service.AbsServiceImpl.getDomainName  ) 
 

Return the domain's name of this service.

Returns:
the domain name

Definition at line 124 of file AbsServiceImpl.java.

String org.objectweb.jonas.service.AbsServiceImpl.getJonasServerName  ) 
 

Return the JOnAS server's name of this service.

Returns:
the server name

Definition at line 132 of file AbsServiceImpl.java.

String org.objectweb.jonas.service.AbsServiceImpl.getName  ) 
 

Returns the service's name

Returns:
the service name

Implements org.objectweb.jonas.service.Service.

Definition at line 107 of file AbsServiceImpl.java.

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

Initialize the service

Parameters:
ctx configuration of the service
Exceptions:
ServiceException service initialization failed

Implements org.objectweb.jonas.service.Service.

Definition at line 62 of file AbsServiceImpl.java.

References org.objectweb.jonas.common.JProp.getValue(), and org.objectweb.jonas.common.JProp.JONAS_DEF_NAME.

Here is the call graph for this function:

boolean org.objectweb.jonas.service.AbsServiceImpl.isStarted  ) 
 

Returns true if the service is started, false otherwise

Returns:
true if the service is started

Implements org.objectweb.jonas.service.Service.

Definition at line 99 of file AbsServiceImpl.java.

void org.objectweb.jonas.service.AbsServiceImpl.setName String  name  ) 
 

Set the service's name

Parameters:
name the name to set

Implements org.objectweb.jonas.service.Service.

Definition at line 115 of file AbsServiceImpl.java.

void org.objectweb.jonas.service.AbsServiceImpl.start  )  throws ServiceException
 

Start the service

Exceptions:
ServiceException service start-up failed

Implements org.objectweb.jonas.service.Service.

Definition at line 79 of file AbsServiceImpl.java.

void org.objectweb.jonas.service.AbsServiceImpl.stop  )  throws ServiceException
 

Stop the service

Exceptions:
ServiceException service stopping failed

Implements org.objectweb.jonas.service.Service.

Definition at line 88 of file AbsServiceImpl.java.


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