Search in sources :

Example 6 with MetaDataStore

use of org.neo4j.kernel.impl.store.MetaDataStore in project neo4j by neo4j.

the class CountsStoreRecoveryTest method flushNeoStoreOnly.

private void flushNeoStoreOnly() throws Exception {
    NeoStores neoStores = ((GraphDatabaseAPI) db).getDependencyResolver().resolveDependency(RecordStorageEngine.class).testAccessNeoStores();
    MetaDataStore metaDataStore = neoStores.getMetaDataStore();
    metaDataStore.flush();
}
Also used : GraphDatabaseAPI(org.neo4j.kernel.internal.GraphDatabaseAPI) RecordStorageEngine(org.neo4j.kernel.impl.storageengine.impl.recordstorage.RecordStorageEngine) MetaDataStore(org.neo4j.kernel.impl.store.MetaDataStore) NeoStores(org.neo4j.kernel.impl.store.NeoStores)

Aggregations

MetaDataStore (org.neo4j.kernel.impl.store.MetaDataStore)6 NeoStores (org.neo4j.kernel.impl.store.NeoStores)3 IOException (java.io.IOException)2 Test (org.junit.Test)2 TransactionId (org.neo4j.kernel.impl.store.TransactionId)2 LogicalTransactionStore (org.neo4j.kernel.impl.transaction.log.LogicalTransactionStore)2 RequestContext (org.neo4j.com.RequestContext)1 Response (org.neo4j.com.Response)1 TransactionObligationResponse (org.neo4j.com.TransactionObligationResponse)1 DependencyResolver (org.neo4j.graphdb.DependencyResolver)1 Visitor (org.neo4j.helpers.collection.Visitor)1 FileSystemAbstraction (org.neo4j.io.fs.FileSystemAbstraction)1 PageCache (org.neo4j.io.pagecache.PageCache)1 ConstraintValidationException (org.neo4j.kernel.api.exceptions.schema.ConstraintValidationException)1 UniquePropertyValueValidationException (org.neo4j.kernel.api.exceptions.schema.UniquePropertyValueValidationException)1 IndexingService (org.neo4j.kernel.impl.api.index.IndexingService)1 RecordStorageEngine (org.neo4j.kernel.impl.storageengine.impl.recordstorage.RecordStorageEngine)1 NoSuchTransactionException (org.neo4j.kernel.impl.transaction.log.NoSuchTransactionException)1 TransactionMetadata (org.neo4j.kernel.impl.transaction.log.TransactionMetadataCache.TransactionMetadata)1 GraphDatabaseAPI (org.neo4j.kernel.internal.GraphDatabaseAPI)1