org.ow2.jonas.ha.internal
Class HaServiceImpl
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.ow2.jonas.lib.reconfig.ReconfigEmitter
org.ow2.jonas.lib.service.AbsServiceImpl
org.ow2.jonas.ha.internal.HaServiceImpl
- All Implemented Interfaces:
- NotificationBroadcaster, NotificationEmitter, HaService, Service
public class HaServiceImpl
- extends AbsServiceImpl
- 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
Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl |
convertToList, doInit, getDomainName, getJonasServerName, getName, getServerProperties, init, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString |
HaServiceImpl
public HaServiceImpl()
setCmiService
public void setCmiService(CmiService cmiService)
- Set a reference for the CMI service
- Parameters:
cmiService
- a CMI service reference
setGcPeriod
public void setGcPeriod(int gcPeriod)
setDatasource
public void setDatasource(String datasource)
setJgroupsConf
public void setJgroupsConf(String jgroupsConf)
setJgroupsGroupname
public void setJgroupsGroupname(String jgroupsGroupname)
setReconnectionTimeout
public void setReconnectionTimeout(long reconnectionTimeout)
doStart
public void doStart()
throws ServiceException
- Description copied from class:
AbsServiceImpl
- Abstract start-up method to be implemented by sub-classes.
- Specified by:
doStart
in class AbsServiceImpl
- Throws:
ServiceException
- service start-up failed
doStop
public void doStop()
throws ServiceException
- Description copied from class:
AbsServiceImpl
- Abstract method for service stopping to be implemented by sub-classes.
- Specified by:
doStop
in class AbsServiceImpl
- Throws:
ServiceException
- service stopping failed
replicateCommit
public void replicateCommit(boolean committed)
- Send commit/abort message.
- Specified by:
replicateCommit
in interface HaService
- Parameters:
committed
- true if the transaction has committed
replicate
public void replicate()
- Specified by:
replicate
in interface HaService
addEntityBean
public void addEntityBean(EntityContext jec)
- Specified by:
addEntityBean
in interface HaService
Copyright © 2010 OW2 Consortium. All Rights Reserved.