@Override public void shutdown() { client.shutdown(); }
public void destroy() { if (client != null) { client.shutdown(shutdownTimeout, TimeUnit.MILLISECONDS); client = null; } }
@Override public void cleanup() throws DBException { if (client != null) { memcachedClient().shutdown(shutdownTimeoutMillis, MILLISECONDS); } }
@Dispose public void stop() { client.shutdown(); } }
public Map<SocketAddress, Map<String, String>> getStats(String cmd) { if(config.isRendInstance()) { List<InetSocketAddress> udsproxyInetSocketAddress = new ArrayList<InetSocketAddress>(memcachedNodesInZone.size()); for(InetSocketAddress address : memcachedNodesInZone) { udsproxyInetSocketAddress.add(new InetSocketAddress(address.getHostName(), config.getUdsproxyMemcachedPort())); } MemcachedClient mc = null; try { mc = new MemcachedClient(connectionFactory, udsproxyInetSocketAddress); return mc.getStats(cmd); } catch(Exception ex) { } finally { if(mc != null) mc.shutdown(); } return Collections.<SocketAddress, Map<String, String>>emptyMap(); } else { return evcacheMemcachedClient.getStats(cmd); } }
@Override public void shutdown() { _memcached.shutdown(); }
@AfterMethod public void tearDown() throws Exception { mc.shutdown(); mc = null; if(!couchbaseProvided) { tearDownCouchbase(); } _tomcat1.stop(); }
@AfterMethod public void tearDown() throws Exception { _client.shutdown(); _httpClient.getConnectionManager().shutdown(); _tomcat1.stop(); _tomcat2.stop(); _daemon.stop(); if(_daemon2 != null) _daemon2.stop(); }
@AfterMethod public void tearDown() throws Exception { _client.shutdown(10, SECONDS); _daemon1.stop(); _daemon2.stop(); if(_daemon3 != null && _daemon3.isRunning()) { _daemon3.stop(); } _tomcat1.stop(); _tomcat2.stop(); _httpClient.getConnectionManager().shutdown(); _executor.shutdownNow(); }
private void setupCouchbaseClient() throws URISyntaxException, IOException { if(mc != null) { LOG.info("Closing existing couchbase client."); mc.shutdown(); } final List<URI> uris = getURIs(); LOG.info("Creating new couchbase client with uris " + uris); mc = new CouchbaseClient(uris, "default", ""); }
@Override public void stop() { client.shutdown(); } }
/** * Shut down immediately. */ public void shutdown() { shutdown(-1, TimeUnit.MILLISECONDS); }
/** * Shut down immediately. */ @Override public void shutdown() { shutdown(-1, TimeUnit.MILLISECONDS); }
public boolean shutdown() throws KeyValueStoreClientException { if (_client != null) { _client.shutdown(); _client = null; } return true; }
/** * Shut down immediately. */ public void shutdown() { shutdown(-1, TimeUnit.MILLISECONDS); }
@Override protected void destroyConnectionClient(MemcachedClient connectionClient) { connectionClient.shutdown(10, TimeUnit.SECONDS); } }
public void connectionEstablished(SocketAddress sa, int reconnectCount) { if (authDescriptor != null) { if (authDescriptor.authThresholdReached()) { this.shutdown(); } authMonitor.authConnection(mconn, opFact, authDescriptor, findNode(sa)); } }
@Override public void connectionEstablished(SocketAddress sa, int reconnectCount) { if (authDescriptor != null) { if (authDescriptor.authThresholdReached()) { shutdown(); } authMonitor.authConnection(mconn, opFact, authDescriptor, findNode(sa)); } }
@AfterMethod public void release() { try { memcachedServer.stop(); TestingUtil.killCacheManagers(cacheManager); memcachedClient.shutdown(); } catch (Exception e) { e.printStackTrace(); } } /* TODO: convert to new encoding