|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.model.embedded.EmbeddedReplicationService
public class EmbeddedReplicationService
An Embedded version of the IReplicationService which has a direct connection to the Anzo server.
| Field Summary |
|---|
| Fields inherited from interface org.openanzo.services.IReplicationService |
|---|
REPLICATION_AUTOMATIC, REPLICATION_IMMEDIATE_ASYNC, REPLICATION_IMMEDIATE_SYNC, REPLICATION_MANUAL |
| Constructor Summary | |
|---|---|
EmbeddedReplicationService(EmbeddedServiceBase baseService)
Get an instance of the EmbeddedReplicationService |
|
| Method Summary | |
|---|---|
java.lang.Long |
execReplicate(java.lang.Long markerIn,
java.util.Set<ITracker> statementTrackers,
java.util.Set<ITracker> newStatementTrackers,
IRepositoryHandler handler)
Replicate with the Anzo server |
static IReplicationService |
getInstance(java.lang.Object parent,
java.util.Properties props)
Get an instance of the EmbeddedReplicationService |
java.lang.String |
getServicePassword()
Get the Password for the current thread |
java.lang.String |
getServiceUser()
Get the UserId for the current thread |
void |
setServicePassword(java.lang.String password)
Set the password for the current thread's operations |
void |
setServiceUser(java.lang.String userId)
Set the UserID for the current thread's operations |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmbeddedReplicationService(EmbeddedServiceBase baseService)
baseService - the base embedded service which this service is built upon| Method Detail |
|---|
public static IReplicationService getInstance(java.lang.Object parent,
java.util.Properties props)
parent - The object creating this serviceprops - The configuration properties for this service
public java.lang.Long execReplicate(java.lang.Long markerIn,
java.util.Set<ITracker> statementTrackers,
java.util.Set<ITracker> newStatementTrackers,
IRepositoryHandler handler)
throws AnzoException
IReplicationService
execReplicate in interface IReplicationServicemarkerIn - Timestamp of last replicationstatementTrackers - Set of already replicated notification trackersnewStatementTrackers - Set of new notification trackershandler - IRepositoryHandler to handle the results of the replication
AnzoException - if there was an error replicating with the serverpublic java.lang.String getServicePassword()
IService
getServicePassword in interface IServicepublic java.lang.String getServiceUser()
IService
getServiceUser in interface IServicepublic void setServicePassword(java.lang.String password)
IService
setServicePassword in interface IServicepassword - Password to use in current thread's operationspublic void setServiceUser(java.lang.String userId)
IService
setServiceUser in interface IServiceuserId - UserId to use in current thread's operations
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||