@Override protected void tearDown() { client.shutdown(1, TimeUnit.MINUTES); }
/** {@inheritDoc} */ @Override protected void afterTest() throws Exception { super.afterTest(); client.shutdown(); customPort = null; }
/** * @throws Exception If failed. */ @Test public void testCustomPort() throws Exception { customPort = 11212; Ignite g = startGrid(); assert g != null; assert g.cluster().nodes().size() == gridCount() + 1; MemcachedClientIF c = startClient(); Assert.assertTrue(c.set("key", 0, 1).get()); Assert.assertEquals(1, c.get("key")); c.shutdown(); stopGrid(); }
@AfterMethod public void tearDown() throws Exception { _memcached.shutdown(); _tomcat1.stop(); _httpClient.getConnectionManager().shutdown(); _daemon.stop(); }
/** * Test for issue #60 (Add possibility to disable msm at runtime): disable msm */ @Test( enabled = true ) public void testDisableMsmAtRuntime() throws InterruptedException, IOException, ExecutionException, TimeoutException, LifecycleException, HttpException { final SessionManager manager = _tomcat1.getManager(); manager.setSticky( true ); // disable msm, shutdown our server and our client manager.setEnabled( false ); _memcached.shutdown(); _daemon.stop(); checkSessionFunctionalityWithMsmDisabled(); }
@Override public void shutdown() { memcachedClient.shutdown(); }
@Override public void shutdown() { memcachedClient.shutdown(); }
_memcached.shutdown(); _daemon.stop();
@Override public void destroyObject(final PooledObject<MemcachedClientIF> p) { try { p.getObject().shutdown(); p.invalidate(); } catch (final Exception e) { LOGGER.error(e.getMessage(), e); } }