directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 6796 - incubator/directory/eve/trunk/eve/frontend/buffer/merlin-impl/src/java/org/apache/eve/buffer
Date Fri, 20 Feb 2004 08:36:08 GMT
Author: akarasulu
Date: Fri Feb 20 00:36:07 2004
New Revision: 6796

Modified:
   incubator/directory/eve/trunk/eve/frontend/buffer/merlin-impl/src/java/org/apache/eve/buffer/MerlinBufferPool.java
Log:
prints info on buffer pool configuration

Modified: incubator/directory/eve/trunk/eve/frontend/buffer/merlin-impl/src/java/org/apache/eve/buffer/MerlinBufferPool.java
==============================================================================
--- incubator/directory/eve/trunk/eve/frontend/buffer/merlin-impl/src/java/org/apache/eve/buffer/MerlinBufferPool.java
(original)
+++ incubator/directory/eve/trunk/eve/frontend/buffer/merlin-impl/src/java/org/apache/eve/buffer/MerlinBufferPool.java
Fri Feb 20 00:36:07 2004
@@ -206,5 +206,23 @@
         
         m_config = new DefaultBufferPoolConfig( l_name, l_inc, l_max, 
                 l_ini, l_size ) ;
+        
+        if ( getLogger().isInfoEnabled() )
+        {   
+            StringBuffer l_buf = new StringBuffer() ;
+            l_buf.append( m_config.getName() ) ;
+            l_buf.append( " direct byte buffer pool created initially with " ) ;
+            l_buf.append( m_config.getInitialSize() ) ;
+            l_buf.append( " byte buffers of " ) ;
+            l_buf.append( m_config.getBufferSize() ) ;
+            l_buf.append( " bytes each.  " ) ;
+            l_buf.append( "The pool will grow to a maximum size of " ) ;
+            l_buf.append( m_config.getMaximumSize() ) ;
+            l_buf.append( " with size increments of " ) ;
+            l_buf.append( m_config.getIncrement() ) ;
+            l_buf.append( " as demand increases." ) ;
+            
+            getLogger().info( l_buf.toString() ) ;
+        }
     }
 }

Mime
View raw message