org.openanzo.services.impl
Class WSReplicationService
java.lang.Object
org.openanzo.services.impl.WSBaseService
org.openanzo.services.impl.WSReplicationService
- All Implemented Interfaces:
- IReplicationService, IService
public class WSReplicationService
- extends WSBaseService
- implements IReplicationService
Implementation of the IReplicationService that talks over WebService/Soap to a remote Anzo Server.
- Author:
- Matthew Roy ( mroy@cambridgesemantics.com )
|
Constructor Summary |
WSReplicationService(java.util.Properties properties)
Create new WSReplicationService with configuration properties provided in Properties object |
WSReplicationService(java.lang.String serviceHostName,
int servicePort,
java.lang.String serviceUser,
java.lang.String servicePassword,
int serviceTimeout)
Create new WSReplicationService with given configuration properties |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSReplicationService
public WSReplicationService(java.lang.String serviceHostName,
int servicePort,
java.lang.String serviceUser,
java.lang.String servicePassword,
int serviceTimeout)
- Create new WSReplicationService with given configuration properties
- Parameters:
serviceHostName - Hostname for Anzo serverservicePort - Port for Anzo serverserviceUser - Username for Anzo serverservicePassword - Password for Anzo serverserviceTimeout - Number of milliseconds to wait before timeing out call to server
WSReplicationService
public WSReplicationService(java.util.Properties properties)
- Create new WSReplicationService with configuration properties provided in Properties object
- Parameters:
properties - Configuration properties
execReplicate
public java.lang.Long execReplicate(java.lang.Long markerIn,
java.util.Set<ITracker> statementTrackers,
java.util.Set<ITracker> newStatementTrackers,
IRepositoryHandler handler)
throws AnzoException
- Description copied from interface:
IReplicationService
- Replicate with the Anzo server
- Specified by:
execReplicate in interface IReplicationService
- Parameters:
markerIn - Timestamp of last replicationstatementTrackers - Set of already replicated notification trackersnewStatementTrackers - Set of new notification trackershandler - IRepositoryHandler to handle the results of the replication
- Returns:
- Return the timestamp for last transaction included in replication
- Throws:
AnzoException - if there was an error replicating with the server
Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.