/** * {@inheritDoc} * <p> * Ensure resource is closed. * * @see AutoCloseable * @see <a href="http://trac.bigdata.com/ticket/1207" > Memory leak in * CI? </a> */ @Override protected void finalize() throws Throwable { close(); super.finalize(); }
@Override synchronized public void shutDown() throws RepositoryException { if (our_mgr != null) { /* * The RemoteRepositoryManager object was create by our constructor, so * we own its life cycle and will close it down here. */ try { our_mgr.close(); } catch (Exception e) { throw new RepositoryException(e); } } open = false; }
public void shutdown() throws Exception { if (m_fixture != null) { m_fixture.stop(); m_fixture = null; } m_rootURL = null; m_serviceURL = null; if (log.isDebugEnabled()) log.debug("Stopping", new StackInfoReport("Stopping HTTPClient")); m_httpClient.stop(); m_httpClient = null; m_repo.close(); m_repo = null; if (log.isInfoEnabled()) log.info("tear down done"); }
public void shutdown() throws Exception { if (m_fixture != null) { m_fixture.stop(); m_fixture = null; } m_rootURL = null; m_serviceURL = null; if (log.isDebugEnabled()) log.debug("Stopping", new StackInfoReport("Stopping HTTPClient")); m_httpClient.stop(); m_httpClient = null; m_repo.close(); m_repo = null; if (log.isInfoEnabled()) log.info("tear down done"); }
@Override protected void tearDown() throws Exception { m_rootURL = null; m_serviceURL = null; if (m_fixture != null) { m_fixture.stop(); m_fixture = null; } if (m_indexManager != null && m_namespace != null) { dropTripleStore(m_indexManager, m_namespace); } if (m_repo != null) { m_repo.close(); m_repo = null; } if (m_client != null) { m_client.stop(); m_client = null; } if (executorService != null) { executorService.shutdownNow(); executorService = null; } super.tearDown(); }
m_repo.close();
m_serviceURL = null; m_repo.close();
m_mgr.close();
m_repo.close();
repositoryManager.close();
m_serviceURL = null; m_repo.close();
@Override protected void tearDown() throws Exception { m_rootURL = null; m_serviceURL = null; if (m_fixture != null) { m_fixture.stop(); m_fixture = null; } if (m_indexManager != null && m_namespace != null) { dropTripleStore(m_indexManager, m_namespace); } if (m_repo != null) { m_repo.close(); m_repo = null; } if (m_client != null) { m_client.stop(); m_client = null; } if (executorService != null) { executorService.shutdownNow(); executorService = null; } super.tearDown(); }
m_serviceURL = null; m_repo.close();
repo.close();
m_mgr.close();
m_serviceURL = null; m_repo.close();