public RecoveryServiceAnonymousInnerClass(PhysicalLogicalTransactionStoreTest outerInstance, AtomicBoolean recoveryRequired, Org.Neo4j.Kernel.impl.transaction.log.PhysicalLogicalTransactionStoreTest.FakeRecoveryVisitor visitor, Org.Neo4j.Kernel.impl.transaction.log.LogicalTransactionStore txStore) { this.outerInstance = outerInstance; this._recoveryRequired = recoveryRequired; this._visitor = visitor; this._txStore = txStore; }
public DefaultRecoveryService(StorageEngine storageEngine, LogTailScanner logTailScanner, TransactionIdStore transactionIdStore, LogicalTransactionStore logicalTransactionStore, LogVersionRepository logVersionRepository, RecoveryStartInformationProvider.Monitor monitor) { this._storageEngine = storageEngine; this._transactionIdStore = transactionIdStore; this._logicalTransactionStore = logicalTransactionStore; this._logVersionRepository = logVersionRepository; this._recoveryStartInformationProvider = new RecoveryStartInformationProvider(logTailScanner, monitor); }
public virtual long FindLastAppliedIndex() { DependencyResolver dependencies = _localDatabase.dataSource().DependencyResolver; TransactionIdStore transactionIdStore = dependencies.ResolveDependency(typeof(TransactionIdStore), ONLY); LogicalTransactionStore transactionStore = dependencies.ResolveDependency(typeof(LogicalTransactionStore), ONLY); return((new LastCommittedIndexFinder(transactionIdStore, transactionStore, _logProvider)).LastCommittedIndex); }
internal NeoStoreTransactionLogModule(LogicalTransactionStore logicalTransactionStore, LogFiles logFiles, LogRotation logRotation, CheckPointerImpl checkPointer, TransactionAppender appender, SynchronizedArrayIdOrderingQueue explicitIndexTransactionOrdering) { this._logicalTransactionStore = logicalTransactionStore; this._logFiles = logFiles; this._logRotation = logRotation; this._checkPointer = checkPointer; this._appender = appender; this._explicitIndexTransactionOrdering = explicitIndexTransactionOrdering; }
public TxPullRequestHandler(CatchupServerProtocol protocol, System.Func <StoreId> storeIdSupplier, System.Func <bool> databaseAvailable, System.Func <NeoStoreDataSource> dataSourceSupplier, Monitors monitors, LogProvider logProvider) { this._protocol = protocol; this._storeIdSupplier = storeIdSupplier; this._databaseAvailable = databaseAvailable; DependencyResolver dependencies = dataSourceSupplier().DependencyResolver; this._transactionIdStore = dependencies.ResolveDependency(typeof(TransactionIdStore)); this._logicalTransactionStore = dependencies.ResolveDependency(typeof(LogicalTransactionStore)); this._monitor = monitors.NewMonitor(typeof(TxPullRequestsMonitor)); this._log = logProvider.getLog(this.GetType()); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private static org.neo4j.kernel.impl.transaction.CommittedTransactionRepresentation extractLastTransaction(org.neo4j.kernel.internal.GraphDatabaseAPI db) throws java.io.IOException private static CommittedTransactionRepresentation ExtractLastTransaction(GraphDatabaseAPI db) { LogicalTransactionStore txStore = Db.DependencyResolver.resolveDependency(typeof(LogicalTransactionStore)); CommittedTransactionRepresentation transaction = null; using (TransactionCursor cursor = txStore.GetTransactions(Org.Neo4j.Kernel.impl.transaction.log.TransactionIdStore_Fields.BASE_TX_ID + 1)) { while (cursor.next()) { transaction = cursor.get(); } } return(transaction); }
public DefaultMasterImplSPI(GraphDatabaseAPI graphDb, FileSystemAbstraction fileSystemAbstraction, Monitors monitors, TokenHolders tokenHolders, IdGeneratorFactory idGeneratorFactory, TransactionCommitProcess transactionCommitProcess, CheckPointer checkPointer, TransactionIdStore transactionIdStore, LogicalTransactionStore logicalTransactionStore, NeoStoreDataSource neoStoreDataSource, LogProvider logProvider) { this._graphDb = graphDb; this._fileSystem = fileSystemAbstraction; this._tokenHolders = tokenHolders; this._idGeneratorFactory = idGeneratorFactory; this._transactionCommitProcess = transactionCommitProcess; this._checkPointer = checkPointer; this._neoStoreDataSource = neoStoreDataSource; this._databaseDirectory = graphDb.DatabaseLayout().databaseDirectory(); this._txChecksumLookup = new TransactionChecksumLookup(transactionIdStore, logicalTransactionStore); this._responsePacker = new ResponsePacker(logicalTransactionStore, transactionIdStore, graphDb.storeId); this._monitors = monitors; //JAVA TO C# CONVERTER WARNING: The .NET Type.FullName property will not always yield results identical to the Java Class.getName method: monitors.AddMonitorListener(new LoggingStoreCopyServerMonitor(logProvider.GetLog(typeof(StoreCopyServer))), typeof(StoreCopyServer).FullName); }
public TransactionChecksumLookup(TransactionIdStore transactionIdStore, LogicalTransactionStore logicalTransactionStore) { this._transactionIdStore = transactionIdStore; this._logicalTransactionStore = logicalTransactionStore; this._upgradeTransaction = transactionIdStore.UpgradeTransaction; }