|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.carol.cmi.ha.JGReplicator
public class JGReplicator
This class implements the main replication functionality
Constructor Summary | |
---|---|
JGReplicator(javax.naming.Context ctx)
|
Method Summary | |
---|---|
void |
addModifiedBean(RequestId reqId,
ObjectId bid,
byte[] state)
Adds a modified EJB to the changes made inside a request. |
void |
clear()
Closes and stops all the elements used (channel, dispatcher...) |
java.lang.Object |
handle(org.jgroups.Message msg)
|
void |
replicate(RequestId reqId,
java.lang.Object response)
Replicates the response and the EJB changes kept on the requestChanges structure for a concrete reqId |
void |
replicateRemove(RequestId requestId)
Replicates a remove method invocation over an EJB for a concrete custerOID |
ResponseInfo |
restoreBeanChanges(RequestId requestId,
java.lang.Object beanSwitch)
Applies the changes kept in BeanChanges. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JGReplicator(javax.naming.Context ctx)
Method Detail |
---|
public void addModifiedBean(RequestId reqId, ObjectId bid, byte[] state)
addModifiedBean
in interface ReplicationManager
bid
- the ObjectId of the changed beanstate
- the serialized state of the changed beanreqId
- the request id from the clientpublic void replicate(RequestId reqId, java.lang.Object response) throws ReplicationException
replicate
in interface ReplicationManager
reqId
- identifies the request changes to replicate hold in
requestChanges structureresponse
- the response to return to the client
ReplicationException
public void replicateRemove(RequestId requestId) throws ReplicationException
replicateRemove
in interface ReplicationManager
requestId
- identifies the custerOID to remove in the backups
ReplicationException
public ResponseInfo restoreBeanChanges(RequestId requestId, java.lang.Object beanSwitch)
restoreBeanChanges
in interface ReplicationManager
requestId
- the request id to access the state of the beanbeanSwitch
- the sfsw that contains the instance where restore the state
public void clear()
clear
in interface ReplicationManager
public java.lang.Object handle(org.jgroups.Message msg)
handle
in interface org.jgroups.blocks.RequestHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |