org.objectweb.jonas.ha
Class HaServiceImpl

java.lang.Object
  extended byorg.objectweb.jonas.ha.HaServiceImpl
All Implemented Interfaces:
HaService, Service

public class HaServiceImpl
extends java.lang.Object
implements HaService

This class binds the HA service to Jonas and initializes the HA architecture

Author:
Francisco Perez-Sorrosal (fpsorrosal@no-spam@fi.upm.es), Alberto Paz-Jimenez (apaz@no-spam@fi.upm.es), benoit pelletier

Constructor Summary
HaServiceImpl()
           
 
Method Summary
 java.lang.String getName()
           
 org.objectweb.carol.cmi.ha.ReplicationManager getReplicationManager()
          Return the replication manager
 void init(javax.naming.Context ctx)
          Initialize the service
 boolean isStarted()
           
 void setName(java.lang.String name)
          Set the service's name
 void start()
          Start the service
 void stop()
          Stop the service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HaServiceImpl

public HaServiceImpl()
Method Detail

init

public void init(javax.naming.Context ctx)
          throws ServiceException
Description copied from interface: Service
Initialize the service

Specified by:
init in interface Service
Parameters:
ctx - configuration of the service
Throws:
ServiceException - when init fails.

start

public void start()
           throws ServiceException
Description copied from interface: Service
Start the service

Specified by:
start in interface Service
Throws:
ServiceException - when start fails.

stop

public void stop()
          throws ServiceException
Description copied from interface: Service
Stop the service

Specified by:
stop in interface Service
Throws:
ServiceException - when stop fails.

isStarted

public boolean isStarted()
Specified by:
isStarted in interface Service
Returns:
Returns true if the service is started, false otherwise

setName

public void setName(java.lang.String name)
Description copied from interface: Service
Set the service's name

Specified by:
setName in interface Service
Parameters:
name - the service's name

getName

public java.lang.String getName()
Specified by:
getName in interface Service
Returns:
Returns the service's name

getReplicationManager

public org.objectweb.carol.cmi.ha.ReplicationManager getReplicationManager()
Return the replication manager

Specified by:
getReplicationManager in interface HaService
Returns:
Return the replication manager