public synchronized void close() { if ( closeable ) { closeable = false; neoStores.close(); } } }
@Override public void shutdown() throws Throwable { indexingService.shutdown(); labelScanStore.shutdown(); neoStores.close(); }
@After public void after() { neoStores.close(); }
@After public void after() { neoStores.close(); }
@After public void tearDown() { if ( neoStores != null ) { neoStores.close(); } }
@After public void tearDown() { if ( neoStores != null ) { neoStores.close(); } }
@After public void closeStore() { neoStores.close(); }
@After public void closeStore() { neoStores.close(); }
@After public void after() { neoStores.close(); }
@After public void tearDown() { if ( neoStores != null ) { neoStores.close(); } }
@After public void after() { if ( neoStores != null ) { neoStores.close(); } }
protected void stop() throws Throwable { if ( directStoreAccess != null ) { neoStore.close(); directStoreAccess.close(); directStoreAccess = null; } }
@After public void tearDown() { if ( neoStores != null ) { neoStores.close(); } }
@After public void after() { neoStores.close(); }
@After public void shutDownStores() { neoStores.close(); }
@After public void closeStore() { neoStores.close(); }
@After public void tearDown() { life.shutdown(); neoStores.close(); }
@Test public void shouldHandleStoreConsistingOfOneEmptyFile() throws Exception { StoreFactory storeFactory = storeFactory( Config.defaults() ); FileSystemAbstraction fs = fsRule.get(); fs.create( testDirectory.databaseLayout().file( "neostore.nodestore.db.labels" ) ); storeFactory.openAllNeoStores( true ).close(); }
@Before public void setUpNeoStores() { databaseLayout = dir.databaseLayout(); Config config = Config.defaults(); pageCache = pageCacheRule.getPageCache( fs.get() ); StoreFactory sf = getStoreFactory( config, databaseLayout, fs.get(), NullLogProvider.getInstance() ); sf.openAllNeoStores( true ).close(); propertyKeyTokenHolder = new DelegatingTokenHolder( this::createPropertyKeyToken, TokenHolder.TYPE_PROPERTY_KEY ); }
@Test public void shouldDelegateDeletionOptionToStores() { // GIVEN StoreFactory storeFactory = storeFactory( Config.defaults(), DELETE_ON_CLOSE ); // WHEN neoStores = storeFactory.openAllNeoStores( true ); assertTrue( fsRule.get().listFiles( testDirectory.databaseDir() ).length >= StoreType.values().length ); // THEN neoStores.close(); assertEquals( 0, fsRule.get().listFiles( testDirectory.databaseDir() ).length ); }