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, org.ow2.jonas.ha.HaService, org.ow2.jonas.service.Service
public class HaServiceImpl
- extends org.ow2.jonas.lib.service.AbsServiceImpl
- implements org.ow2.jonas.ha.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
| Fields inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
| Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl |
checkRequirements, convertToList, doInit, getDomainName, getJonasServerName, getName, getServerProperties, init, isOSGi, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString |
| Methods inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
initLogger, sendReconfigNotification, sendSaveNotification |
| Methods inherited from interface org.ow2.jonas.service.Service |
checkRequirements, getName, init, isStarted, setName, start, stop |
HaServiceImpl
public HaServiceImpl()
setTimeout
public void setTimeout(int timeout)
setDatasource
public void setDatasource(String datasource)
setJgroupsConf
public void setJgroupsConf(String jgroupsConf)
setJgroupsGroupname
public void setJgroupsGroupname(String jgroupsGroupname)
doStart
public void doStart()
throws org.ow2.jonas.service.ServiceException
- Specified by:
doStart in class org.ow2.jonas.lib.service.AbsServiceImpl
- Throws:
org.ow2.jonas.service.ServiceException
doStop
public void doStop()
throws org.ow2.jonas.service.ServiceException
- Specified by:
doStop in class org.ow2.jonas.lib.service.AbsServiceImpl
- Throws:
org.ow2.jonas.service.ServiceException
replicateCommit
public void replicateCommit(boolean committed)
- Send commit/abort message
- Specified by:
replicateCommit in interface org.ow2.jonas.ha.HaService
- Parameters:
reqId - the request idcommitted - true if the transaction has committed
replicate
public void replicate()
- Specified by:
replicate in interface org.ow2.jonas.ha.HaService
addEntityBean
public void addEntityBean(EntityContext jec)
- Specified by:
addEntityBean in interface org.ow2.jonas.ha.HaService
Copyright © 2008 OW2 Consortium. All Rights Reserved.