Method Summary |
|
public void | checkConflict(Object obj) checks if an object has been modified in both ObjectContainers involved
in the replication process since the last time the two ObjectContainers
were replicated. |
public void | commit() commits the replication task to both involved ObjectContainers.
Call this method after replication is completed to
write all changes back to the database files. |
public ObjectContainer | peerA() returns the "peerA" ObjectContainer involved in this ReplicationProcess. |
public ObjectContainer | peerB() returns the "peerB" ObjectContainer involved in this ReplicationProcess. |
public void | replicate(Object obj) replicates an object.
By default the version number of the object is checked in
both ObjectContainers involved in the replication process. |
public void | rollback() ends a replication task without committing any changes. |
public void | setDirection(ObjectContainer relicateFrom, ObjectContainer replicateTo) modifies the replication policy, what to do on a call to
ReplicationProcess.replicate(Object) . |
public void | whereModified(Query query) adds a constraint to the passed Query to query only for objects that
were modified since the last replication process between the two
ObjectContainers involved in this replication process. |