directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r750575 - /directory/apacheds/branches/apacheds-replication/mitosis/src/main/java/org/apache/directory/mitosis/syncrepl/ConsumerCalllback.java
Date Thu, 05 Mar 2009 20:30:38 GMT
Author: kayyagari
Date: Thu Mar  5 20:30:37 2009
New Revision: 750575

URL: http://svn.apache.org/viewvc?rev=750575&view=rev
Log:
a new interface to handle the syncrepl search results

Added:
    directory/apacheds/branches/apacheds-replication/mitosis/src/main/java/org/apache/directory/mitosis/syncrepl/ConsumerCalllback.java

Added: directory/apacheds/branches/apacheds-replication/mitosis/src/main/java/org/apache/directory/mitosis/syncrepl/ConsumerCalllback.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-replication/mitosis/src/main/java/org/apache/directory/mitosis/syncrepl/ConsumerCalllback.java?rev=750575&view=auto
==============================================================================
--- directory/apacheds/branches/apacheds-replication/mitosis/src/main/java/org/apache/directory/mitosis/syncrepl/ConsumerCalllback.java
(added)
+++ directory/apacheds/branches/apacheds-replication/mitosis/src/main/java/org/apache/directory/mitosis/syncrepl/ConsumerCalllback.java
Thu Mar  5 20:30:37 2009
@@ -0,0 +1,59 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.mitosis.syncrepl;
+
+
+import java.util.List;
+
+import org.apache.directory.shared.ldap.codec.intermediate.IntermediateResponse;
+import org.apache.directory.shared.ldap.codec.search.SearchResultDone;
+import org.apache.directory.shared.ldap.codec.search.SearchResultEntry;
+
+
+/**
+ * 
+ * A callback interface used by the SyncreplConsumer to get notified
+ * by LdapConnection when a search request is completed.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public interface ConsumerCalllback
+{
+    /**
+     * 
+     * handles a SyncInfoValueControl which will come as a IntermediateResponse.
+     *
+     * @param response the IntermediateResponse which contains SyncInfoValueControl 
+     */
+    void handleSyncInfo( IntermediateResponse response );
+
+
+    /**
+     * 
+     * handles a list of SearchResultEntries and the SearchResultDone message
+     * that will be received as after performing a search request forsyncing.
+     *
+     * @param syncResList the list of SearchResultEntry obect with SyncStateValueCOntrol
+     * @param searchDone the SearchResultDone message containing the SyncDoneValueCOntrol
+     */
+    void handleSearchResult( List<SearchResultEntry> syncResList, SearchResultDone
searchDone );
+
+}



Mime
View raw message