use of org.neo4j.kernel.impl.transaction.log.checkpoint.TriggerInfo in project neo4j by neo4j.
the class CountsRotationTest method checkPoint.
private void checkPoint(GraphDatabaseAPI db) throws IOException {
TriggerInfo triggerInfo = new SimpleTriggerInfo("test");
db.getDependencyResolver().resolveDependency(CheckPointer.class).forceCheckPoint(triggerInfo);
}
use of org.neo4j.kernel.impl.transaction.log.checkpoint.TriggerInfo in project neo4j by neo4j.
the class DefaultMasterImplSPITest method flushStoreFilesWithCorrectCheckpointTriggerName.
@Test
public void flushStoreFilesWithCorrectCheckpointTriggerName() throws IOException {
CheckPointer checkPointer = mock(CheckPointer.class);
NeoStoreDataSource dataSource = mock(NeoStoreDataSource.class);
when(dataSource.listStoreFiles(anyBoolean())).thenReturn(Iterators.emptyIterator());
DefaultMasterImplSPI master = new DefaultMasterImplSPI(mock(GraphDatabaseAPI.class, RETURNS_MOCKS), mock(FileSystemAbstraction.class), new Monitors(), mock(LabelTokenHolder.class), mock(PropertyKeyTokenHolder.class), mock(RelationshipTypeTokenHolder.class), mock(IdGeneratorFactory.class), mock(TransactionCommitProcess.class), checkPointer, mock(TransactionIdStore.class), mock(LogicalTransactionStore.class), dataSource, mock(PageCache.class), new StoreCopyCheckPointMutex());
master.flushStoresAndStreamStoreFiles(mock(StoreWriter.class));
TriggerInfo expectedTriggerInfo = new SimpleTriggerInfo(DefaultMasterImplSPI.STORE_COPY_CHECKPOINT_TRIGGER);
verify(checkPointer).tryCheckPoint(expectedTriggerInfo);
}
use of org.neo4j.kernel.impl.transaction.log.checkpoint.TriggerInfo in project neo4j by neo4j.
the class TestLogPruning method checkPoint.
private void checkPoint() throws IOException {
TriggerInfo triggerInfo = new SimpleTriggerInfo("test");
db.getDependencyResolver().resolveDependency(CheckPointer.class).forceCheckPoint(triggerInfo);
}
Aggregations