org.ow2.carol.cmi.ha
Class BeanInfo

java.lang.Object
  extended by org.ow2.carol.cmi.ha.BeanInfo
All Implemented Interfaces:
java.io.Serializable

public class BeanInfo
extends java.lang.Object
implements java.io.Serializable

This class holds the required information to replicate the beans' state.

Author:
Francisco Perez-Sorrosal (fpsorrosal@no-spam@fi.upm.es), Alberto Paz-Jimenez (apaz@no-spam@fi.upm.es)
See Also:
Serialized Form

Constructor Summary
BeanInfo(org.ow2.carol.cmi.ha.SessionId bid, StatefulBeanReference bean)
          Constructor.
 
Method Summary
 StatefulBeanReference getBean()
          Returns the bean.
 org.ow2.carol.cmi.ha.SessionId getBId()
           
 byte[] getState()
           
 void obtainBeanState()
          Obtains the state from the bean and store it in state.
 void setBId(org.ow2.carol.cmi.ha.SessionId id)
           
 void setState(byte[] state)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeanInfo

public BeanInfo(org.ow2.carol.cmi.ha.SessionId bid,
                StatefulBeanReference bean)
Constructor.

Parameters:
bid -
state -
Method Detail

getBId

public org.ow2.carol.cmi.ha.SessionId getBId()
Returns:
Returns the bId.

setBId

public void setBId(org.ow2.carol.cmi.ha.SessionId id)
Parameters:
id - The bId to set.

getState

public byte[] getState()
Returns:
Returns the state.

setState

public void setState(byte[] state)
Parameters:
state - The state to set.

getBean

public StatefulBeanReference getBean()
Returns the bean.

Returns:
the bean

obtainBeanState

public void obtainBeanState()
                     throws ReplicationException
Obtains the state from the bean and store it in state.

Throws:
ReplicationException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007 OW2 Consortium. All Rights Reserved.