|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.objectweb.jonas.management.ReconfigDispatcher
org.objectweb.jonas.service.AbsServiceImpl
org.objectweb.jonas.ha.HaServiceImpl
This class binds the HA service to Jonas and initializes the HA architecture
Field Summary |
Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
Constructor Summary | |
HaServiceImpl()
|
Method Summary | |
void |
doInit(javax.naming.Context ctx)
Abstract initialization method to be implemented by sub-classes |
void |
doStart()
Abstract start-up method to be implemented by sub-classes |
void |
doStop()
Abstract method for service stopping to be implemented by sub-classes |
double |
getAvgSizeofReplicatedMessages()
MBean method: Get the average size of the replicated messages sent. |
java.lang.String |
getHRDatasourceName()
MBean method: Get the Datasource name required to hold the EB version numbers of the horizontal replication approach. |
java.lang.String |
getName()
Returns the service's name |
long |
getNumberofReplicatedMessages()
MBean method: Get the number of replicated messages sent. |
org.objectweb.carol.cmi.ha.ReplicationManager |
getReplicationManager()
Return the replication manager |
long |
getSFSBInfoTimeout()
MBean method: Get the SFSB info timeout to clean certain information stored in memory. |
boolean |
isStarted()
Returns true if the service is started, false otherwise |
void |
setHRDatasourceName(java.lang.String name)
MBean method: Set the Datasource name required to hold the EB version numbers of the horizontal replication approach. |
void |
setName(java.lang.String name)
Set the service's name |
void |
setSFSBInfoTimeout(long timeout)
MBean method: Set the SFSB info timeout. |
Methods inherited from class org.objectweb.jonas.service.AbsServiceImpl |
getDomainName, getJonasServerName, init, start, stop |
Methods inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
addNotificationListener, getFilter, getHandback, getListener, getNotificationInfo, initLogger, removeNotificationListener, sendReconfigNotification, sendSaveNotification |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
handleNotification, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.jonas.service.Service |
init, start, stop |
Constructor Detail |
public HaServiceImpl()
Method Detail |
public void doInit(javax.naming.Context ctx) throws ServiceException
AbsServiceImpl
doInit
in class AbsServiceImpl
ctx
- configuration of the service
ServiceException
- service initialization failedpublic void doStart() throws ServiceException
AbsServiceImpl
doStart
in class AbsServiceImpl
ServiceException
- service start-up failedpublic void doStop() throws ServiceException
AbsServiceImpl
doStop
in class AbsServiceImpl
ServiceException
- service stopping failedpublic boolean isStarted()
AbsServiceImpl
isStarted
in interface Service
isStarted
in class AbsServiceImpl
public void setName(java.lang.String name)
Service
setName
in interface Service
setName
in class AbsServiceImpl
name
- the name to setpublic java.lang.String getName()
AbsServiceImpl
getName
in interface Service
getName
in class AbsServiceImpl
public org.objectweb.carol.cmi.ha.ReplicationManager getReplicationManager()
getReplicationManager
in interface HaService
public long getNumberofReplicatedMessages()
getNumberofReplicatedMessages
in interface HaServiceImplMBean
public double getAvgSizeofReplicatedMessages()
getAvgSizeofReplicatedMessages
in interface HaServiceImplMBean
public long getSFSBInfoTimeout()
getSFSBInfoTimeout
in interface HaServiceImplMBean
public void setSFSBInfoTimeout(long timeout)
setSFSBInfoTimeout
in interface HaServiceImplMBean
timeout
- the timeout to clean the infopublic java.lang.String getHRDatasourceName()
getHRDatasourceName
in interface HaServiceImplMBean
public void setHRDatasourceName(java.lang.String name)
setHRDatasourceName
in interface HaServiceImplMBean
name
- the name of the datasource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |