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 ReplicationRequestHandler
server
- the LdapServer instancepublic void stop()
stop
in interface ReplicationRequestHandler
public 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 ReplicationRequestHandler
session
- The used LdapSession. Should be the dedicated userrequest
- The search requestorg.apache.directory.api.ldap.model.exception.LdapException
- If the syncrepl request wasn't handled properlypublic org.apache.directory.api.ldap.model.filter.ExprNode modifyFilter(LdapSession session, org.apache.directory.api.ldap.model.message.SearchRequest req) throws Exception
Exception
public ReplicaEventLogJanitor getLogJanitor()
public Map<Integer,ReplicaEventLog> getReplicaLogMap()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.