private BackupDelegator BackupDelegatorFromConfig(PageCache pageCache, Config config) { CatchUpClient catchUpClient = catchUpClient(config); TxPullClient txPullClient = new TxPullClient(catchUpClient, Monitors); ExponentialBackoffStrategy backOffStrategy = new ExponentialBackoffStrategy(1, config.Get(CausalClusteringSettings.store_copy_backoff_max_wait).toMillis(), TimeUnit.MILLISECONDS); StoreCopyClient storeCopyClient = new StoreCopyClient(catchUpClient, Monitors, LogProvider, backOffStrategy); RemoteStore remoteStore = new RemoteStore(LogProvider, FileSystemAbstraction, pageCache, storeCopyClient, txPullClient, TransactionLogCatchUpFactory, config, Monitors); return(BackupDelegator(remoteStore, catchUpClient, storeCopyClient)); }
public RemoteStore(LogProvider logProvider, FileSystemAbstraction fs, PageCache pageCache, StoreCopyClient storeCopyClient, TxPullClient txPullClient, TransactionLogCatchUpFactory transactionLogFactory, Config config, Monitors monitors) { this._logProvider = logProvider; this._storeCopyClient = storeCopyClient; this._txPullClient = txPullClient; this._fs = fs; this._pageCache = pageCache; this._transactionLogFactory = transactionLogFactory; this._config = config; this._monitors = monitors; this._log = logProvider.getLog(this.GetType()); this._commitStateHelper = new CommitStateHelper(pageCache, fs, config); }