public class ReplicationConsumerImpl extends Object implements org.apache.directory.ldap.client.api.ConnectionClosedEventListener, ReplicationConsumer
DIFFERED, NOW| Constructor and Description |
|---|
ReplicationConsumerImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
connect()
Connect to the remote server.
|
boolean |
connect(boolean now)
Connect the consumer, connection immediately or wait before reconnection
|
void |
connectionClosed() |
SyncReplConfiguration |
getConfig() |
String |
getId() |
void |
init(org.apache.directory.server.core.api.DirectoryService directoryservice)
Init the replication service
|
void |
ping()
Test the connection with the provider.
|
void |
setConfig(ReplicationConsumerConfig config)
Sets the configuration of the consumer
|
ReplicationStatusEnum |
startSync()
Starts the synchronization operation
|
void |
stop()
Stops the consumer
|
String |
toString() |
public SyncReplConfiguration getConfig()
getConfig in interface ReplicationConsumerpublic void init(org.apache.directory.server.core.api.DirectoryService directoryservice)
throws Exception
init in interface ReplicationConsumerdirectoryservice - The directory serviceException - If the initialization failedpublic boolean connect()
public void connectionClosed()
connectionClosed in interface org.apache.directory.ldap.client.api.ConnectionClosedEventListenerpublic ReplicationStatusEnum startSync()
startSync in interface ReplicationConsumerpublic void setConfig(ReplicationConsumerConfig config)
setConfig in interface ReplicationConsumerconfig - the configuration of the consumerpublic boolean connect(boolean now)
connect in interface ReplicationConsumernow - A param that tells the consumer to connect immediately or notpublic void ping()
ping in interface ReplicationConsumerpublic void stop()
stop in interface ReplicationConsumerpublic String getId()
getId in interface ReplicationConsumerpublic String toString()
toString in class ObjectObject.toString()Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.