/** * 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; }
this, String.valueOf(storageLayout()), getDataAccessLayerFactory().getUnderlyingStorageInfo()); } catch (InstanceAlreadyExistsException exception) { _log.error(MessageCatalog._00111_MBEAN_ALREADY_REGISTERED, getId()); _factory = getDataAccessLayerFactory();
this, String.valueOf(storageLayout()), getDataAccessLayerFactory().getUnderlyingStorageInfo()); } catch (InstanceAlreadyExistsException exception) { _log.error(MessageCatalog._00111_MBEAN_ALREADY_REGISTERED, getId()); _factory = getDataAccessLayerFactory();
@BeforeClass public static void beforeAllTests() throws Exception { _tripleStore = newTripleStore(); _tripleStore.open(); map = new PersistentMap<String, String>(String.class, String.class, "MAP_" + randomString(), false, null); map.initialise(_tripleStore.getDataAccessLayerFactory()); }
@BeforeClass public static void beforeAllTests() throws Exception { _tripleStore = newTripleStore(); _tripleStore.open(); CLASS_UNDER_TEST = new PersistentSet<String>(String.class, "SET_" + randomString()); CLASS_UNDER_TEST.initialise(_tripleStore.getDataAccessLayerFactory()); }