/** * 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; }