|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReplicationConsumer
An interface for consumers of a service which receives the ldap entries as and when a event happens in the server. The data received might vary based on the internal configuration used by implementation.
| Field Summary | |
|---|---|
static boolean |
DIFFERED
A flag we used when we want to connect after a waiting delay |
static boolean |
NOW
A flag we used when we want to connect without waiting |
| Method Summary | |
|---|---|
boolean |
connect(boolean now)
Connect the consumer, connection immediately or wait before reconnection |
ReplicationConsumerConfig |
getConfig()
|
String |
getId()
|
void |
init(org.apache.directory.server.core.api.DirectoryService dirService)
Initializes the consumer |
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 |
| Field Detail |
|---|
static final boolean NOW
static final boolean DIFFERED
| Method Detail |
|---|
void setConfig(ReplicationConsumerConfig config)
config - the configuration of the consumerReplicationConsumerConfig getConfig()
void init(org.apache.directory.server.core.api.DirectoryService dirService)
throws Exception
dirService - the DirectoryService
Exception - If the initialization failedboolean connect(boolean now)
now - A param that tells the consumer to connect immediately or not
void ping()
void stop()
String getId()
ReplicationStatusEnum startSync()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||