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(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 ReplicationConsumerImpl()
public SyncReplConfiguration getConfig()
getConfig
in interface ReplicationConsumer
public void init(DirectoryService directoryservice) throws Exception
init
in interface ReplicationConsumer
directoryservice
- The directory serviceException
- If the initialization failedpublic boolean connect()
public void connectionClosed()
connectionClosed
in interface org.apache.directory.ldap.client.api.ConnectionClosedEventListener
public ReplicationStatusEnum startSync()
startSync
in interface ReplicationConsumer
public void setConfig(ReplicationConsumerConfig config)
setConfig
in interface ReplicationConsumer
config
- the configuration of the consumerpublic boolean connect(boolean now)
connect
in interface ReplicationConsumer
now
- A param that tells the consumer to connect immediately or notpublic void ping()
ping
in interface ReplicationConsumer
public void stop()
stop
in interface ReplicationConsumer
public String getId()
getId
in interface ReplicationConsumer
public String toString()
toString
in class Object
Object.toString()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.