org.apache.directory.server.ldap.replication.provider
Class SyncReplRequestHandler

java.lang.Object
  extended by org.apache.directory.server.ldap.replication.provider.SyncReplRequestHandler
All Implemented Interfaces:
ReplicationRequestHandler

public class SyncReplRequestHandler
extends Object
implements ReplicationRequestHandler

Class used to process the incoming synchronization request from the consumers.

Author:
Apache Directory Project

Field Summary
protected  LdapServer ldapServer
          The reference on the Ldap server instance
 
Constructor Summary
SyncReplRequestHandler()
          Create a SyncReplRequestHandler empty instance
 
Method Summary
 void handleSyncRequest(LdapSession session, org.apache.directory.shared.ldap.model.message.SearchRequest request)
          Process the incoming search request sent by a remote server when trying to replicate.
 org.apache.directory.shared.ldap.model.filter.ExprNode modifyFilter(LdapSession session, org.apache.directory.shared.ldap.model.message.SearchRequest req)
           
 void start(LdapServer server)
          initializes the replication provider
 void stop()
          stops the replication provider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ldapServer

protected LdapServer ldapServer
The reference on the Ldap server instance

Constructor Detail

SyncReplRequestHandler

public SyncReplRequestHandler()
Create a SyncReplRequestHandler empty instance

Method Detail

start

public void start(LdapServer server)
initializes the replication provider

Specified by:
start in interface ReplicationRequestHandler
Parameters:
server - the LdapServer instance

stop

public void stop()
stops the replication provider

Specified by:
stop in interface ReplicationRequestHandler

handleSyncRequest

public void handleSyncRequest(LdapSession session,
                              org.apache.directory.shared.ldap.model.message.SearchRequest request)
                       throws org.apache.directory.shared.ldap.model.exception.LdapException
Process the incoming search request sent by a remote server when trying to replicate.

Specified by:
handleSyncRequest in interface ReplicationRequestHandler
Parameters:
session - The used LdapSession. Should be the dedicated user
request - The search request
Throws:
org.apache.directory.shared.ldap.model.exception.LdapException

modifyFilter

public org.apache.directory.shared.ldap.model.filter.ExprNode modifyFilter(LdapSession session,
                                                                           org.apache.directory.shared.ldap.model.message.SearchRequest req)
                                                                    throws Exception
Throws:
Exception


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.