/** * @throws Exception If failed. */ @Test public void testManagementThreadPoolSize() throws Exception { testWrongPoolSize(configuration().setManagementThreadPoolSize(WRONG_VALUE)); }
/** * Performs testing for wrong tread pool size. * * @param cfg an IgniteConfiguration with the only one thread pool size assigned with the WRONG_VALUE. * @throws Exception If failed. */ private void testWrongPoolSize(IgniteConfiguration cfg) throws Exception { try { Ignition.start(cfg); fail(); } catch (IgniteException ex) { assertNotNull(ex.getMessage()); assertTrue(ex.getMessage().contains("thread pool size")); } } }
/** * @throws Exception If failed. */ @Test public void testRebalanceThreadPoolSize() throws Exception { testWrongPoolSize(configuration().setRebalanceThreadPoolSize(WRONG_VALUE)); }
/** * @throws Exception If failed. */ @Test public void testSystemThreadPoolSize() throws Exception { testWrongPoolSize(configuration().setSystemThreadPoolSize(WRONG_VALUE)); }
/** * @throws Exception If failed. */ @Test public void testPublicThreadPoolSize() throws Exception { testWrongPoolSize(configuration().setPublicThreadPoolSize(WRONG_VALUE)); }
/** * @throws Exception If failed. */ @Test public void testUtilityCachePoolSize() throws Exception { testWrongPoolSize(configuration().setUtilityCachePoolSize(WRONG_VALUE)); }
/** * @throws Exception If failed. */ @Test public void testAsyncCallbackPoolSize() throws Exception { testWrongPoolSize(configuration().setAsyncCallbackPoolSize(WRONG_VALUE)); }
/** * @throws Exception If failed. */ @Test public void testIgfsThreadPoolSize() throws Exception { testWrongPoolSize(configuration().setIgfsThreadPoolSize(WRONG_VALUE)); }
/** * @throws Exception If failed. */ @Test public void testPeerClassLoadingThreadPoolSize() throws Exception { testWrongPoolSize(configuration().setPeerClassLoadingThreadPoolSize(WRONG_VALUE)); }
/** * @throws Exception If failed. */ @Test public void testConnectorThreadPoolSize() throws Exception { final IgniteConfiguration cfg = configuration(); cfg.getConnectorConfiguration().setThreadPoolSize(WRONG_VALUE); testWrongPoolSize(cfg); }