Search in sources :

Example 16 with SimpleLogVersionRepository

use of org.neo4j.kernel.impl.transaction.SimpleLogVersionRepository in project neo4j by neo4j.

the class TransactionLogFilesTest method createLogFiles.

private LogFiles createLogFiles() throws Exception {
    var files = LogFilesBuilder.builder(databaseLayout, fileSystem).withTransactionIdStore(new SimpleTransactionIdStore()).withLogVersionRepository(new SimpleLogVersionRepository()).withLogEntryReader(new VersionAwareLogEntryReader(new TestCommandReaderFactory())).withStoreId(StoreId.UNKNOWN).build();
    files.init();
    return files;
}
Also used : SimpleTransactionIdStore(org.neo4j.kernel.impl.transaction.SimpleTransactionIdStore) SimpleLogVersionRepository(org.neo4j.kernel.impl.transaction.SimpleLogVersionRepository) VersionAwareLogEntryReader(org.neo4j.kernel.impl.transaction.log.entry.VersionAwareLogEntryReader) TestCommandReaderFactory(org.neo4j.kernel.impl.api.TestCommandReaderFactory)

Example 17 with SimpleLogVersionRepository

use of org.neo4j.kernel.impl.transaction.SimpleLogVersionRepository in project neo4j by neo4j.

the class AbstractLogTailScannerTest method setUp.

@BeforeEach
void setUp() throws IOException {
    logVersionRepository = new SimpleLogVersionRepository();
    transactionIdStore = new SimpleTransactionIdStore();
    logProvider = new AssertableLogProvider();
    logFiles = createLogFiles();
}
Also used : SimpleTransactionIdStore(org.neo4j.kernel.impl.transaction.SimpleTransactionIdStore) SimpleLogVersionRepository(org.neo4j.kernel.impl.transaction.SimpleLogVersionRepository) AssertableLogProvider(org.neo4j.logging.AssertableLogProvider) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

SimpleLogVersionRepository (org.neo4j.kernel.impl.transaction.SimpleLogVersionRepository)17 SimpleTransactionIdStore (org.neo4j.kernel.impl.transaction.SimpleTransactionIdStore)17 Test (org.junit.jupiter.api.Test)13 LogFiles (org.neo4j.kernel.impl.transaction.log.files.LogFiles)8 Lifespan (org.neo4j.kernel.lifecycle.Lifespan)5 LogPosition (org.neo4j.kernel.impl.transaction.log.LogPosition)4 BeforeEach (org.junit.jupiter.api.BeforeEach)3 LogFile (org.neo4j.kernel.impl.transaction.log.files.LogFile)3 LogVersionRepository (org.neo4j.storageengine.api.LogVersionRepository)3 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)2 Config (org.neo4j.configuration.Config)2 TestCommandReaderFactory (org.neo4j.kernel.impl.api.TestCommandReaderFactory)2 VersionAwareLogEntryReader (org.neo4j.kernel.impl.transaction.log.entry.VersionAwareLogEntryReader)2 DatabaseHealth (org.neo4j.monitoring.DatabaseHealth)2 IOException (java.io.IOException)1 Path (java.nio.file.Path)1 CountDownLatch (java.util.concurrent.CountDownLatch)1 ThreadLocalRandom (java.util.concurrent.ThreadLocalRandom)1 DisabledOnOs (org.junit.jupiter.api.condition.DisabledOnOs)1 EnabledOnOs (org.junit.jupiter.api.condition.EnabledOnOs)1