You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by gi...@apache.org on 2004/11/07 14:34:31 UTC
svn commit: rev 56843 - cocoon/trunk/src/java/org/apache/cocoon/components/thread
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( )