Examples of maxThreads()


Examples of org.infinispan.commons.executors.BlockingThreadPoolExecutorFactory.maxThreads()

      assertEquals(TestCacheManagerFactory.MAX_ASYNC_EXEC_THREADS, transportThreadPool.maxThreads());
      assertEquals(TestCacheManagerFactory.ASYNC_EXEC_QUEUE_SIZE, transportThreadPool.queueLength());

      BlockingThreadPoolExecutorFactory remoteCommandThreadPool =
            cm.getCacheManagerConfiguration().transport().remoteCommandThreadPool().threadPoolFactory();
      assertEquals(TestCacheManagerFactory.MAX_REQ_EXEC_THREADS, remoteCommandThreadPool.maxThreads());
      assertEquals(TestCacheManagerFactory.KEEP_ALIVE, remoteCommandThreadPool.keepAlive());

      BlockingThreadPoolExecutorFactory totalOrderThreadPool =
            cm.getCacheManagerConfiguration().transport().totalOrderThreadPool().threadPoolFactory();
      assertEquals(16, totalOrderThreadPool.maxThreads());
View Full Code Here

Examples of org.infinispan.commons.executors.BlockingThreadPoolExecutorFactory.maxThreads()

      assertEquals(TestCacheManagerFactory.MAX_REQ_EXEC_THREADS, remoteCommandThreadPool.maxThreads());
      assertEquals(TestCacheManagerFactory.KEEP_ALIVE, remoteCommandThreadPool.keepAlive());

      BlockingThreadPoolExecutorFactory totalOrderThreadPool =
            cm.getCacheManagerConfiguration().transport().totalOrderThreadPool().threadPoolFactory();
      assertEquals(16, totalOrderThreadPool.maxThreads());
      assertEquals(1, totalOrderThreadPool.coreThreads());
      assertEquals(1000, totalOrderThreadPool.keepAlive());
      assertEquals(0, totalOrderThreadPool.queueLength());
      DefaultThreadFactory totalOrderThreadFactory =
            cm.getCacheManagerConfiguration().transport().totalOrderThreadPool().threadFactory();
View Full Code Here

Examples of org.infinispan.commons.executors.BlockingThreadPoolExecutorFactory.maxThreads()

   }

   public void testGlobalConfig() {
      BlockingThreadPoolExecutorFactory listenerThreadPool =
            cacheManager.getCacheManagerConfiguration().listenerThreadPool().threadPoolFactory();
      assertEquals(2, listenerThreadPool.maxThreads());

      BlockingThreadPoolExecutorFactory persistenceThreadPool =
            cacheManager.getCacheManagerConfiguration().persistenceThreadPool().threadPoolFactory();
      assertEquals(4, persistenceThreadPool.maxThreads());
View Full Code Here

Examples of org.infinispan.commons.executors.BlockingThreadPoolExecutorFactory.maxThreads()

            cacheManager.getCacheManagerConfiguration().listenerThreadPool().threadPoolFactory();
      assertEquals(2, listenerThreadPool.maxThreads());

      BlockingThreadPoolExecutorFactory persistenceThreadPool =
            cacheManager.getCacheManagerConfiguration().persistenceThreadPool().threadPoolFactory();
      assertEquals(4, persistenceThreadPool.maxThreads());

      Properties transportProps = cacheManager.getCacheManagerConfiguration().transport().properties();
      // Should be "jgroups-tcp.xml", but gets overriden by test cache manager factory
      assert transportProps.get("configurationFile") == null;
   }
View Full Code Here

Examples of org.infinispan.commons.executors.BlockingThreadPoolExecutorFactory.maxThreads()

            assertEquals("infinispan", threadFactory.threadGroup().getName());
            assertEquals("%G %i", threadFactory.threadNamePattern());
            assertEquals(5, threadFactory.initialPriority());
            BlockingThreadPoolExecutorFactory threadPool = cm.getCacheManagerConfiguration().transport().transportThreadPool().threadPoolFactory();
            assertEquals(6, threadPool.coreThreads()); // overriden by TestCacheManagerFactory
            assertEquals(6, threadPool.maxThreads()); // overriden by TestCacheManagerFactory
            assertEquals(10000, threadPool.queueLength()); // overriden by TestCacheManagerFactory
            assertEquals(30000, threadPool.keepAlive())// overriden by TestCacheManagerFactory

            threadFactory = cm.getCacheManagerConfiguration().listenerThreadPool().threadFactory();
            assertEquals("infinispan", threadFactory.threadGroup().getName());
View Full Code Here

Examples of org.infinispan.commons.executors.BlockingThreadPoolExecutorFactory.maxThreads()

            assertEquals("infinispan", threadFactory.threadGroup().getName());
            assertEquals("%G %i", threadFactory.threadNamePattern());
            assertEquals(5, threadFactory.initialPriority());
            threadPool = cm.getCacheManagerConfiguration().listenerThreadPool().threadPoolFactory();
            assertEquals(1, threadPool.coreThreads());
            assertEquals(1, threadPool.maxThreads());
            assertEquals(0, threadPool.queueLength());
            assertEquals(0, threadPool.keepAlive());

            assertTrue(g.serialization().marshaller() instanceof VersionAwareMarshaller);
            assertEquals(Version.getVersionShort("1.0"), g.serialization().version());
View Full Code Here

Examples of org.infinispan.commons.executors.BlockingThreadPoolExecutorFactory.maxThreads()

            assertEquals("infinispan", threadFactory.threadGroup().getName());
            assertEquals("%G %i", threadFactory.threadNamePattern());
            assertEquals(5, threadFactory.initialPriority());
            BlockingThreadPoolExecutorFactory threadPool = cm.getCacheManagerConfiguration().transport().transportThreadPool().threadPoolFactory();
            assertEquals(6, threadPool.coreThreads()); // overriden by TestCacheManagerFactory
            assertEquals(6, threadPool.maxThreads()); // overriden by TestCacheManagerFactory
            assertEquals(10000, threadPool.queueLength()); // overriden by TestCacheManagerFactory
            assertEquals(30000, threadPool.keepAlive())// overriden by TestCacheManagerFactory

            threadFactory = cm.getCacheManagerConfiguration().listenerThreadPool().threadFactory();
            assertEquals("infinispan", threadFactory.threadGroup().getName());
View Full Code Here

Examples of org.infinispan.commons.executors.BlockingThreadPoolExecutorFactory.maxThreads()

            assertEquals("infinispan", threadFactory.threadGroup().getName());
            assertEquals("%G %i", threadFactory.threadNamePattern());
            assertEquals(5, threadFactory.initialPriority());
            threadPool = cm.getCacheManagerConfiguration().listenerThreadPool().threadPoolFactory();
            assertEquals(1, threadPool.coreThreads());
            assertEquals(1, threadPool.maxThreads());
            assertEquals(0, threadPool.queueLength());
            assertEquals(0, threadPool.keepAlive());

            assertTrue(g.serialization().marshaller() instanceof VersionAwareMarshaller);
            assertEquals(Version.getVersionShort("1.0"), g.serialization().version());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.