|
||||||||||
| 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.
| Field Summary |
|---|
| Fields inherited from interface org.apache.directory.server.ldap.replication.consumer.ReplicationConsumer |
|---|
DIFFERED, NOW |
| Constructor Summary | |
|---|---|
ReplicationConsumerImpl()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
Exception - 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 not
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||