directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1152097 - /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/SyncReplSearchListener.java
Date Fri, 29 Jul 2011 04:31:30 GMT
Author: elecharny
Date: Fri Jul 29 04:31:29 2011
New Revision: 1152097

URL: http://svn.apache.org/viewvc?rev=1152097&view=rev
Log:
Added some Javadoc and a toString() method

Modified:
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/SyncReplSearchListener.java

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/SyncReplSearchListener.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/SyncReplSearchListener.java?rev=1152097&r1=1152096&r2=1152097&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/SyncReplSearchListener.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/SyncReplSearchListener.java
Fri Jul 29 04:31:29 2011
@@ -49,7 +49,6 @@ import org.slf4j.LoggerFactory;
 
 
 /**
- * 
  * modeled after PersistentSearchListener
  *  NOTE: doco is missing at many parts. Will be added once the functionality is satisfactory
  * 
@@ -57,13 +56,19 @@ import org.slf4j.LoggerFactory;
  */
 public class SyncReplSearchListener implements DirectoryListener, AbandonListener
 {
+    /** Logger for this class */
     private static final Logger LOG = LoggerFactory.getLogger( SyncReplSearchListener.class
);
 
+    /** The ldap session */
     private LdapSession session;
+    
+    /** The search request we are processing */
     private SearchRequest req;
 
+    /** */
     private volatile boolean pushInRealTime;
 
+    /** The log storing message that haven't yet been sent to the client */
     private final ReplicaEventLog clientMsgLog;
 
 
@@ -87,6 +92,7 @@ public class SyncReplSearchListener impl
     public void setReq( SearchRequest req )
     {
         this.req = req;
+        
         if ( req != null )
         {
             req.addAbandonListener( this );
@@ -444,4 +450,21 @@ public class SyncReplSearchListener impl
             }
         }
     }
+    
+    
+    /**
+     * {@inheritDoc}
+     */
+    public String toString()
+    {
+        StringBuilder sb = new StringBuilder();
+        
+        sb.append( "SyncReplSearchListener : \n" );
+        sb.append( '\'' ).append( req ).append( "', " );
+        sb.append( '\'' ).append( pushInRealTime ).append( "', \n" );
+        sb.append( clientMsgLog );
+        sb.append( '\n' );
+        
+        return sb.toString();
+    }
 }
\ No newline at end of file



Mime
View raw message