avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: avalon-cornerstone/src/java/org/apache/avalon/cornerstone/services/threads ThreadManager.java
Date Tue, 11 Mar 2003 21:47:44 GMT
bloritsch    2003/03/11 13:47:44

  Modified:    src/java/org/apache/avalon/cornerstone/blocks/threads
                        DefaultThreadManager.java
               src/java/org/apache/avalon/cornerstone/services/threads
                        ThreadManager.java
  Log:
  revert interface change on ThreadPool component
  
  Revision  Changes    Path
  1.22      +7 -4      avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/threads/DefaultThreadManager.java
  
  Index: DefaultThreadManager.java
  ===================================================================
  RCS file: /home/cvs/avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/threads/DefaultThreadManager.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- DefaultThreadManager.java	3 Mar 2003 13:48:54 -0000	1.21
  +++ DefaultThreadManager.java	11 Mar 2003 21:47:44 -0000	1.22
  @@ -15,7 +15,7 @@
   import org.apache.avalon.framework.configuration.Configuration;
   import org.apache.avalon.framework.configuration.ConfigurationException;
   import org.apache.avalon.framework.logger.AbstractLogEnabled;
  -import org.apache.excalibur.thread.ThreadPool;
  +import org.apache.avalon.excalibur.thread.ThreadPool;
   import org.apache.excalibur.threadcontext.ThreadContext;
   
   /**
  @@ -61,13 +61,16 @@
           throws ConfigurationException
       {
           final String name = configuration.getChild( "name" ).getValue();
  -        final int priority = configuration.getChild( "priority" ).getValueAsInteger( 5
);
  +        // NEVER USED!!
  +        //final int priority = configuration.getChild( "priority" ).getValueAsInteger(
5 );
           final boolean isDaemon = configuration.getChild( "is-daemon" ).getValueAsBoolean(
false );
   
           final int minThreads = configuration.getChild( "min-threads" ).getValueAsInteger(
5 );
           final int maxThreads = configuration.getChild( "max-threads" ).getValueAsInteger(
10 );
  -        final int minSpareThreads = configuration.getChild( "min-spare-threads" ).
  -            getValueAsInteger( maxThreads - minThreads );
  +        
  +        // NEVER USED!!
  +        //final int minSpareThreads = configuration.getChild( "min-spare-threads" ).
  +        //    getValueAsInteger( maxThreads - minThreads );
   
           try
           {
  
  
  
  1.10      +1 -1      avalon-cornerstone/src/java/org/apache/avalon/cornerstone/services/threads/ThreadManager.java
  
  Index: ThreadManager.java
  ===================================================================
  RCS file: /home/cvs/avalon-cornerstone/src/java/org/apache/avalon/cornerstone/services/threads/ThreadManager.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ThreadManager.java	3 Mar 2003 13:48:55 -0000	1.9
  +++ ThreadManager.java	11 Mar 2003 21:47:44 -0000	1.10
  @@ -7,7 +7,7 @@
    */
   package org.apache.avalon.cornerstone.services.threads;
   
  -import org.apache.excalibur.thread.ThreadPool;
  +import org.apache.avalon.excalibur.thread.ThreadPool;
   
   /**
    * Manage a set of ThreadPools.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message