|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.ldap.replication.consumer.ReplicationConsumerImpl
public class ReplicationConsumerImpl
Implementation of syncrepl slave a.k.a consumer.
| Constructor Summary | |
|---|---|
ReplicationConsumerImpl()
|
|
| Method Summary | |
|---|---|
boolean |
connect()
Connect to the remote server. |
void |
connectionClosed()
|
void |
deleteEntries(List<byte[]> uuidList,
boolean isRefreshPresent)
deletes the entries having the UUID given in the list |
void |
disconnect()
|
SyncreplConfiguration |
getConfig()
|
String |
getId()
the identifier of this consumer instance |
org.apache.directory.shared.ldap.model.message.ResultCodeEnum |
handleSearchDone(org.apache.directory.shared.ldap.model.message.SearchResultDone searchDone)
|
void |
handleSearchReference(org.apache.directory.shared.ldap.model.message.SearchResultReference searchRef)
|
void |
handleSearchResult(org.apache.directory.shared.ldap.model.message.SearchResultEntry syncResult)
|
void |
handleSyncInfo(org.apache.directory.shared.ldap.model.message.IntermediateResponse syncInfoResp)
|
void |
init(org.apache.directory.server.core.api.DirectoryService directoryservice)
Init the replication service |
void |
prepareSyncSearchRequest()
prepares a SearchRequest for syncing DIT content. |
void |
removeCookie()
deletes the cookie and resets the syncCookie to null |
void |
setConfig(ReplicationConsumerConfig config)
sets the configuration of the consumer |
void |
start()
starts the consumer |
void |
startSync()
starts the synchronization operation |
void |
stop()
stops the consumer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReplicationConsumerImpl()
| Method Detail |
|---|
public SyncreplConfiguration getConfig()
getConfig in interface ReplicationConsumer
public void init(org.apache.directory.server.core.api.DirectoryService directoryservice)
throws Exception
init in interface ReplicationConsumerdirectoryservice - The directory service
Exceptionpublic boolean connect()
public void prepareSyncSearchRequest()
throws org.apache.directory.shared.ldap.model.exception.LdapException
org.apache.directory.shared.ldap.model.exception.LdapExceptionpublic org.apache.directory.shared.ldap.model.message.ResultCodeEnum handleSearchDone(org.apache.directory.shared.ldap.model.message.SearchResultDone searchDone)
public void handleSearchReference(org.apache.directory.shared.ldap.model.message.SearchResultReference searchRef)
public void handleSearchResult(org.apache.directory.shared.ldap.model.message.SearchResultEntry syncResult)
public void handleSyncInfo(org.apache.directory.shared.ldap.model.message.IntermediateResponse syncInfoResp)
public void connectionClosed()
connectionClosed in interface org.apache.directory.ldap.client.api.ConnectionClosedEventListenerpublic void startSync()
public void setConfig(ReplicationConsumerConfig config)
setConfig in interface ReplicationConsumerconfig - the configuration of the consumerpublic void start()
start in interface ReplicationConsumerpublic void stop()
stop in interface ReplicationConsumerpublic String getId()
getId in interface ReplicationConsumerpublic void disconnect()
public void removeCookie()
public void deleteEntries(List<byte[]> uuidList,
boolean isRefreshPresent)
throws Exception
uuidList - the list of UUIDs
Exception - in case of any problems while deleting the entries
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||