Exemplo n.º 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private static org.neo4j.causalclustering.catchup.tx.TransactionLogCatchUpFactory factory(org.neo4j.causalclustering.catchup.tx.TransactionLogCatchUpWriter writer) throws java.io.IOException
        private static TransactionLogCatchUpFactory Factory(TransactionLogCatchUpWriter writer)
        {
            TransactionLogCatchUpFactory factory = mock(typeof(TransactionLogCatchUpFactory));

            when(factory.Create(any(), any(typeof(FileSystemAbstraction)), Null, any(typeof(Config)), any(typeof(LogProvider)), anyLong(), anyBoolean(), anyBoolean(), anyBoolean())).thenReturn(writer);
            return(factory);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Dependencies that can be resolved immediately after launching the backup tool
 /// </summary>
 /// <param name="outsideWorld"> filesystem and output streams that the tool interacts with </param>
 /// <param name="logProvider"> made available to subsequent dependency resolution classes </param>
 /// <param name="monitors"> will become shared across all resolved dependencies </param>
 internal BackupModule(OutsideWorld outsideWorld, LogProvider logProvider, Monitors monitors)
 {
     this._outsideWorld = outsideWorld;
     this._logProvider  = logProvider;
     this._monitors     = monitors;
     this._clock        = Clock.systemDefaultZone();
     this._transactionLogCatchUpFactory = new TransactionLogCatchUpFactory();
     this._fileSystemAbstraction        = outsideWorld.FileSystem();
     this._jobScheduler = createInitialisedScheduler();
 }