Package org.apache.catalina.core

Examples of org.apache.catalina.core.StandardThreadExecutor$TaskQueue


      return contentType.indexOf('\n') + contentType.indexOf('\r') > -2;
   }
  
   static private void createAndSetExecutor(ProtocolHandler protocolHandler, String executorConfig)
   {
      Executor executor = new StandardThreadExecutor();
      log.debug("setting executor to " + executor + " with properties:");
      if (executorConfig != null)
      {
         String[] ss = executorConfig.split(",");
         for (int i = 0; i < ss.length; i++)
         {
            int pos = ss[i].indexOf('=');
            setProperty(executor, ss[i].substring(0, pos).trim(), ss[i].substring(pos + 1).trim());
            log.debug(ss[i].substring(0, pos).trim() + ": " + ss[i].substring(pos + 1).trim());
        
      }
     
      try
      {
         executor.start();
      }
      catch (LifecycleException e)
      {
         log.warn("unable to start executor " + executor, e);
         return;
View Full Code Here


     
      assertEquals(new Integer(7), new Integer(protocolHandler.getSoTimeout()));
      assertEquals(Boolean.TRUE, new Boolean(protocolHandler.getTcpNoDelay()));
      assertEquals(InetAddress.getLocalHost(), protocolHandler.getAddress());
     
      StandardThreadExecutor executor = (StandardThreadExecutor) protocolHandler.getExecutor();
      log.info("daemon:          " + executor.isDaemon());
      log.info("maxIdleTime:     " + executor.getMaxIdleTime());
      log.info("minSpareThreads: " + executor.getMinSpareThreads());
      log.info("maxThreads:      " + executor.getMaxThreads());
      log.info("name:            " + executor.getName());
      log.info("namePrefix:      " + executor.getNamePrefix());
      log.info("threadPriority:  " + executor.getThreadPriority());
     
      assertFalse(executor.isDaemon());
      assertEquals(11, executor.getMaxIdleTime());
      assertEquals(13, executor.getMinSpareThreads());
      assertEquals(17, executor.getMaxThreads());
      assertEquals("test", executor.getName());
      assertEquals("prefix", executor.getNamePrefix());
      assertEquals(Thread.NORM_PRIORITY + 1, executor.getThreadPriority());
     
      if (connector != null)
         connector.stop();
      log.info(getName() + " PASSES");
   }
View Full Code Here

TOP

Related Classes of org.apache.catalina.core.StandardThreadExecutor$TaskQueue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.