|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReplicationManager
Interface with the replication functionality.
| Method Summary | |
|---|---|
void |
addEntityBean(RequestId reqId,
EntityBeanReference bean)
Correlates the changes made on a modified bean with a concrete client request. |
void |
addModifiedBean(RequestId reqId,
org.ow2.carol.cmi.ha.SessionId bid,
StatefulBeanReference bean)
Correlates the changes made on a modified bean with a concrete client request. |
void |
addResponse(RequestId reqId,
java.lang.Object response)
Associate a response with a requestId. |
void |
clear()
Clears/removes the elements used by the concrete implementation. |
java.lang.Object |
getBackupResponse(RequestId reqId)
Returns the response associated with the request id. |
boolean |
hasBackupResponse(RequestId reqId)
Returns true if the request id have an associated response, false in other case. |
void |
processMessage(HaMessageData data)
Processes a message data. |
void |
replicate(RequestId reqId)
Replicates the changes made on beans inside a concrete request context. |
void |
replicateCommit(RequestId reqId,
boolean committed)
Replicates the commit/abort message associate with a request. |
void |
restoreBeanChanges(org.ow2.carol.cmi.ha.SessionId clusterOID,
StatefulBeanReference bean)
Restores the state for a bean through its remote interface. |
| Method Detail |
|---|
void addModifiedBean(RequestId reqId,
org.ow2.carol.cmi.ha.SessionId bid,
StatefulBeanReference bean)
reqId - the request id from the clientbid - the unique identifier for the instancebean - the bean reference
void addEntityBean(RequestId reqId,
EntityBeanReference bean)
reqId - the request id from the clientbean - the bean reference
void addResponse(RequestId reqId,
java.lang.Object response)
reqId - the request idresponse - the response
void replicate(RequestId reqId)
throws ReplicationException
reqId - the request id
ReplicationException
void replicateCommit(RequestId reqId,
boolean committed)
throws ReplicationException
reqId - the request idcommitted - true if the transaction has committed
ReplicationExceptionboolean hasBackupResponse(RequestId reqId)
reqId - the request id
java.lang.Object getBackupResponse(RequestId reqId)
reqId -
void restoreBeanChanges(org.ow2.carol.cmi.ha.SessionId clusterOID,
StatefulBeanReference bean)
clusterOID - the cluster object idbean - the sfsw that contains the instance where restore the statevoid processMessage(HaMessageData data)
data - the message datavoid clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||