org.ow2.jonas.ha.internal
Class HaServiceImpl

java.lang.Object
  extended by org.ow2.jonas.lib.management.javaee.ManagedObject
      extended by org.ow2.jonas.lib.service.AbsServiceImpl
          extended by org.ow2.jonas.ha.internal.HaServiceImpl
All Implemented Interfaces:
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

Constructor Summary
HaServiceImpl()
           
 
Method Summary
 void addEntityBean(javax.ejb.EntityContext jec)
           
 void doStart()
           
 void doStop()
           
 void replicate()
           
 void replicateCommit(boolean committed)
          Send commit/abort message.
 void setCmiService(CmiService cmiService)
          Set a reference for the CMI service
 void setDatasource(java.lang.String datasource)
           
 void setGcPeriod(int gcPeriod)
           
 void setJgroupsConf(java.lang.String jgroupsConf)
           
 void setJgroupsGroupname(java.lang.String jgroupsGroupname)
           
 void setReconnectionTimeout(long reconnectionTimeout)
           
 
Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl
convertToList, doInit, getDomainName, getJonasServerName, getName, getSequenceNumber, getServerProperties, init, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString
 
Methods inherited from class org.ow2.jonas.lib.management.javaee.ManagedObject
getModelMBean, sendNotification, sendReconfigNotification, sendSaveNotification, setModelMBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ow2.jonas.service.Service
getName, init, isStarted, setName, start, stop
 

Constructor Detail

HaServiceImpl

public HaServiceImpl()
Method Detail

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(java.lang.String datasource)

setJgroupsConf

public void setJgroupsConf(java.lang.String jgroupsConf)

setJgroupsGroupname

public void setJgroupsGroupname(java.lang.String jgroupsGroupname)

setReconnectionTimeout

public void setReconnectionTimeout(long reconnectionTimeout)

doStart

public void doStart()
             throws ServiceException
Specified by:
doStart in class AbsServiceImpl
Throws:
ServiceException

doStop

public void doStop()
            throws ServiceException
Specified by:
doStop in class AbsServiceImpl
Throws:
ServiceException

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(javax.ejb.EntityContext jec)
Specified by:
addEntityBean in interface HaService


Copyright © 2012 OW2 Consortium. All Rights Reserved.