public class SyncReplRequestHandler extends Object implements ReplicationRequestHandler
| Modifier and Type | Field and Description |
|---|---|
protected LdapServer |
ldapServer
The reference on the Ldap server instance
|
| Constructor and Description |
|---|
SyncReplRequestHandler()
Create a SyncReplRequestHandler empty instance
|
| Modifier and Type | Method and Description |
|---|---|
ReplicaEventLogJanitor |
getLogJanitor() |
Map<Integer,ReplicaEventLog> |
getReplicaLogMap() |
void |
handleSyncRequest(LdapSession session,
org.apache.directory.api.ldap.model.message.SearchRequest request)
Process the incoming search request sent by a remote server when trying to replicate.
|
org.apache.directory.api.ldap.model.filter.ExprNode |
modifyFilter(LdapSession session,
org.apache.directory.api.ldap.model.message.SearchRequest req) |
void |
start(LdapServer server)
initializes the replication provider
|
void |
stop()
stops the replication provider
|
protected LdapServer ldapServer
public SyncReplRequestHandler()
public void start(LdapServer server)
start in interface ReplicationRequestHandlerserver - the LdapServer instancepublic void stop()
stop in interface ReplicationRequestHandlerpublic void handleSyncRequest(LdapSession session, org.apache.directory.api.ldap.model.message.SearchRequest request) throws org.apache.directory.api.ldap.model.exception.LdapException
handleSyncRequest in interface ReplicationRequestHandlersession - The used LdapSession. Should be the dedicated userrequest - The search requestorg.apache.directory.api.ldap.model.exception.LdapExceptionpublic org.apache.directory.api.ldap.model.filter.ExprNode modifyFilter(LdapSession session, org.apache.directory.api.ldap.model.message.SearchRequest req) throws Exception
Exceptionpublic ReplicaEventLogJanitor getLogJanitor()
public Map<Integer,ReplicaEventLog> getReplicaLogMap()
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.