org.objectweb.jonas.ha
Class HaUtilsDelegateImpl

java.lang.Object
  extended byorg.objectweb.jonas.ha.HaUtilsDelegateImpl
All Implemented Interfaces:
org.objectweb.carol.cmi.ha.HaUtilsDelegate

public class HaUtilsDelegateImpl
extends java.lang.Object
implements org.objectweb.carol.cmi.ha.HaUtilsDelegate

This class contains useful methods related to the HA service

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

Constructor Summary
HaUtilsDelegateImpl()
          Constructor
 
Method Summary
static org.objectweb.carol.cmi.ha.ReplicationManager getReplicationManager()
           
 void injectState(java.lang.Object bean, byte[] beanState)
          Injects the serialized state of the bean in the corresponding beanSwitch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HaUtilsDelegateImpl

public HaUtilsDelegateImpl()
Constructor

Method Detail

getReplicationManager

public static org.objectweb.carol.cmi.ha.ReplicationManager getReplicationManager()
Returns:
get the replication service

injectState

public void injectState(java.lang.Object bean,
                        byte[] beanState)
                 throws java.lang.Exception
Injects the serialized state of the bean in the corresponding beanSwitch

Specified by:
injectState in interface org.objectweb.carol.cmi.ha.HaUtilsDelegate
Parameters:
bean - target bean
beanState - state to inject
Throws:
java.lang.Exception - if an error occurs