public BatchingTxApplier(int maxBatchSize, System.Func <TransactionIdStore> txIdStoreSupplier, System.Func <TransactionCommitProcess> commitProcessSupplier, Monitors monitors, PageCursorTracerSupplier pageCursorTracerSupplier, VersionContextSupplier versionContextSupplier, CommandIndexTracker commandIndexTracker, LogProvider logProvider) { this._maxBatchSize = maxBatchSize; this._txIdStoreSupplier = txIdStoreSupplier; this._commitProcessSupplier = commitProcessSupplier; this._pageCursorTracerSupplier = pageCursorTracerSupplier; this._log = logProvider.getLog(this.GetType()); this._monitor = monitors.NewMonitor(typeof(PullRequestMonitor)); this._versionContextSupplier = versionContextSupplier; this._commandIndexTracker = commandIndexTracker; }
public CatchupPollingProcess(LogProvider logProvider, LocalDatabase localDatabase, Suspendable enableDisableOnSoreCopy, CatchUpClient catchUpClient, UpstreamDatabaseStrategySelector selectionStrategy, TimerService timerService, long txPullIntervalMillis, BatchingTxApplier applier, Monitors monitors, StoreCopyProcess storeCopyProcess, System.Func <DatabaseHealth> databaseHealthSupplier, TopologyService topologyService) { this._localDatabase = localDatabase; this._log = logProvider.getLog(this.GetType()); this._enableDisableOnStoreCopy = enableDisableOnSoreCopy; this._catchUpClient = catchUpClient; this._selectionStrategy = selectionStrategy; this._timerService = timerService; this._txPullIntervalMillis = txPullIntervalMillis; this._applier = applier; this._pullRequestMonitor = monitors.NewMonitor(typeof(PullRequestMonitor)); this._storeCopyProcess = storeCopyProcess; this._databaseHealthSupplier = databaseHealthSupplier; this._topologyService = topologyService; }
private static int RunOptions(GithubOptions opts) { var monitor = new PullRequestMonitor(opts.Token, opts.Folder); var cancellationTokenSource = new CancellationTokenSource(); try { Console.WriteLine("Beginning of retrieval of PR status"); monitor.RunAsync(opts.Builds).Wait(cancellationTokenSource.Token); } catch (OperationCanceledException) { // Ignore } finally { Console.WriteLine("End of deep monitoring"); } return(0); }
public TxPullClient(CatchUpClient catchUpClient, Monitors monitors) { this._catchUpClient = catchUpClient; this._pullRequestMonitor = monitors.NewMonitor(typeof(PullRequestMonitor)); }