@Override protected void closeInternal() { _decoratee.close(); } }
@Override protected void closeInternal() { _longLiteralsDictionary.close(); }
@Override protected void closeInternal() { _decoratee.close(); } }
@Override protected void closeInternal() { _longLiteralsDictionary.close(); }
@Override protected void closeInternal() { _id2node_cache.clear(); _node2id_cache.clear(); _decoratee.close(); }
@Override protected void closeInternal() { _id2node_cache.clear(); _node2id_cache.clear(); _decoratee.close(); }
@Override protected void closeInternal() { _namespaces.close(); _localNames.close(); _bNodesAndLiterals.close(); }
@Override protected void closeInternal() { _namespaces.close(); _localNames.close(); _bNodesAndLiterals.close(); }
/** * Closing the dictionary will trigger a close() on embedded dictionary. */ @Test public void close() { final ITopLevelDictionary dictionary = mock(ITopLevelDictionary.class); _cut._longLiteralsDictionary = dictionary; _cut.close(); verify(dictionary).close(); }
/** * Closing the dictionary means clearing the cache and invoking close() on decoratee. */ @Test public void close() { _cut.close(); assertEquals(0, _cut._id2node_cache.size()); assertEquals(0, _cut._node2id_cache.size()); verify(_decoratee).close(); }
/** * Close must close all managed dictionaries. */ @Test public void close() { _cut.close(); verify(_namespacesDictionary).close(); verify(_localNamesDictionary).close(); verify(_bnodesAndLiteralsDictionary).close(); }
/** * Closes all connections to the underlying storage. */ public final void close() { if (!_isOpen) { _log.info(MessageCatalog._00084_STORE_ALREADY_CLOSED, this); return; } if (_selectEstimator != null) { _selectEstimator.close(); } if (_counterFactory != null) { _counterFactory.close(); } try { _rdfIndexDAO.close(); } catch (final DataAccessLayerException exception) { _log.error(MessageCatalog._00093_DATA_ACCESS_LAYER_FAILURE, exception); } ManagementRegistrar.unregisterStore( this, String.valueOf(storageLayout()), getDataAccessLayerFactory().getUnderlyingStorageInfo()); _workers.shutdown(); _dictionary.close(); _log.info(MessageCatalog._00085_STORE_HAS_BEEN_CLOSED, this); _isOpen = false; }
/** * Closes all connections to the underlying storage. */ public final void close() { if (!_isOpen) { _log.info(MessageCatalog._00084_STORE_ALREADY_CLOSED, this); return; } if (_selectEstimator != null) { _selectEstimator.close(); } if (_counterFactory != null) { _counterFactory.close(); } try { _rdfIndexDAO.close(); } catch (final DataAccessLayerException exception) { _log.error(MessageCatalog._00093_DATA_ACCESS_LAYER_FAILURE, exception); } ManagementRegistrar.unregisterStore( this, String.valueOf(storageLayout()), getDataAccessLayerFactory().getUnderlyingStorageInfo()); _workers.shutdown(); _dictionary.close(); _log.info(MessageCatalog._00085_STORE_HAS_BEEN_CLOSED, this); _isOpen = false; }