cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giac...@apache.org
Subject svn commit: rev 56843 - cocoon/trunk/src/java/org/apache/cocoon/components/thread
Date Sun, 07 Nov 2004 13:34:31 GMT
Author: giacomo
Date: Sun Nov  7 05:34:30 2004
New Revision: 56843

Modified:
   cocoon/trunk/src/java/org/apache/cocoon/components/thread/DefaultThreadPool.java
Log:
added debugging messages

Modified: cocoon/trunk/src/java/org/apache/cocoon/components/thread/DefaultThreadPool.java
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/components/thread/DefaultThreadPool.java	(original)
+++ cocoon/trunk/src/java/org/apache/cocoon/components/thread/DefaultThreadPool.java	Sun Nov
 7 05:34:30 2004
@@ -180,6 +180,25 @@
     }
 
     /**
+     * Execute a command
+     *
+     * @param command The {@link Runnable} to execute
+     *
+     * @throws InterruptedException In case of interruption
+     */
+    public void execute( Runnable command )
+        throws InterruptedException
+    {
+        if( getLogger(  ).isDebugEnabled(  ) )
+        {
+            getLogger(  ).debug( "Executing Command: " + command.toString(  ) +
+                                 ",pool=" + getName(  ) );
+        }
+
+        super.execute( command );
+    }
+
+    /**
      * @see org.apache.cocoon.components.thread.ThreadPool#shutdownGraceful()
      */
     public void shutdown(  )

Mime
View raw message