org.openanzo.server.repository
Class ReplicationService
java.lang.Object
org.openanzo.server.repository.ReplicationService
public class ReplicationService
- extends java.lang.Object
ReplicationService handles determining the replication changes between 2 points in time
- Author:
- Matthew Roy ( mroy@cambridgesemantics.com )
|
Method Summary |
java.lang.Long |
replicate(java.util.Set<ITracker> trackers,
java.util.Set<ITracker> newTrackers,
java.lang.Long marker,
java.lang.Long userId,
IRepositoryHandler handler)
Determine delta changes between marker and last transaction committed on server |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReplicationService
public ReplicationService(RepositoryConnection repositoryConnection)
- Create a new ReplicationService with given RepositoryConnection
- Parameters:
repositoryConnection -
replicate
public java.lang.Long replicate(java.util.Set<ITracker> trackers,
java.util.Set<ITracker> newTrackers,
java.lang.Long marker,
java.lang.Long userId,
IRepositoryHandler handler)
throws AnzoException
- Determine delta changes between marker and last transaction committed on server
- Parameters:
trackers - Trackers that have already been replicatednewTrackers - New trackers that haven't been replicated yetmarker - Timestamp when replication was last runuserId - Userid of user replicatinghandler - Handler to which changes are written
- Returns:
- the timestamp of the last replication time
- Throws:
AnzoException
Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.