//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: void execute(final org.neo4j.kernel.api.direct.DirectStoreAccess directStoreAccess, final org.neo4j.consistency.checking.CheckDecorator decorator, final org.neo4j.consistency.store.RecordAccess recordAccess, final org.neo4j.consistency.report.InconsistencyReport report, org.neo4j.consistency.checking.cache.CacheAccess cacheAccess, org.neo4j.consistency.report.ConsistencyReporter.Monitor reportMonitor) throws ConsistencyCheckIncompleteException //JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected: internal virtual void Execute(DirectStoreAccess directStoreAccess, CheckDecorator decorator, RecordAccess recordAccess, InconsistencyReport report, CacheAccess cacheAccess, ConsistencyReporter.Monitor reportMonitor) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.neo4j.consistency.report.ConsistencyReporter reporter = new org.neo4j.consistency.report.ConsistencyReporter(recordAccess, report, reportMonitor); ConsistencyReporter reporter = new ConsistencyReporter(recordAccess, report, reportMonitor); StoreProcessor processEverything = new StoreProcessor(decorator, reporter, Stage_Fields.SequentialForward, cacheAccess); ProgressMonitorFactory.MultiPartBuilder progress = _progressFactory.multipleParts("Full Consistency Check"); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.neo4j.kernel.impl.store.StoreAccess nativeStores = directStoreAccess.nativeStores(); StoreAccess nativeStores = directStoreAccess.NativeStores(); try { using (IndexAccessors indexes = new IndexAccessors(directStoreAccess.Indexes(), nativeStores.SchemaStore, _samplingConfig)) { MultiPassStore.Factory multiPass = new MultiPassStore.Factory(decorator, recordAccess, cacheAccess, report, reportMonitor); ConsistencyCheckTasks taskCreator = new ConsistencyCheckTasks(progress, processEverything, nativeStores, _statistics, cacheAccess, directStoreAccess.LabelScanStore(), indexes, directStoreAccess.TokenHolders(), multiPass, reporter, _threads); if (_checkIndexStructure) { ConsistencyCheckIndexStructure(directStoreAccess.LabelScanStore(), indexes, reporter, _progressFactory); } IList <ConsistencyCheckerTask> tasks = taskCreator.CreateTasksForFullCheck(_checkLabelScanStore, _checkIndexes, _checkGraph); progress.Build(); TaskExecutor.Execute(tasks, decorator.prepare); } } catch (Exception e) { throw new ConsistencyCheckIncompleteException(e); } }
internal ConsistencyCheckTasks(ProgressMonitorFactory.MultiPartBuilder multiPartBuilder, StoreProcessor defaultProcessor, StoreAccess nativeStores, Statistics statistics, CacheAccess cacheAccess, LabelScanStore labelScanStore, IndexAccessors indexes, TokenHolders tokenHolders, MultiPassStore.Factory multiPass, ConsistencyReporter reporter, int numberOfThreads) { this._multiPartBuilder = multiPartBuilder; this._defaultProcessor = defaultProcessor; this._nativeStores = nativeStores; this._statistics = statistics; this._cacheAccess = cacheAccess; this._tokenHolders = tokenHolders; this._multiPass = multiPass; this._reporter = reporter; this._labelScanStore = labelScanStore; this._indexes = indexes; this._numberOfThreads = numberOfThreads; }
internal virtual void ScanForOrphanChains(ProgressMonitorFactory progressFactory) { IList <ThreadStart> tasks = new List <ThreadStart>(); ProgressMonitorFactory.MultiPartBuilder progress = progressFactory.MultipleParts("Checking for orphan chains"); if (_owners != null) { tasks.Add(new OrphanCheck(RecordType.PROPERTY, _owners, progress)); } if (_dynamics != null) { foreach (KeyValuePair <RecordType, ConcurrentMap <long, DynamicOwner> > entry in _dynamics.SetOfKeyValuePairs()) { tasks.Add(new OrphanCheck(entry.Key, entry.Value, progress)); } } foreach (ThreadStart task in tasks) { task.run(); } }
internal StoreProcessorTask(string name, Statistics statistics, int threads, RecordStore <R> store, StoreAccess storeAccess, string builderPrefix, ProgressMonitorFactory.MultiPartBuilder builder, CacheAccess cacheAccess, StoreProcessor processor, QueueDistribution distribution) : base(name, statistics, threads) { this._store = store; this._storeAccess = storeAccess; this._cacheAccess = cacheAccess; this._processor = processor; this._distribution = distribution; this._progressListener = builder.ProgressForPart(name + IndexedPartName(store.StorageFile.Name, builderPrefix), store.HighId); }
internal RecordScanner(string name, Statistics statistics, int threads, BoundedIterable <RECORD> store, ProgressMonitorFactory.MultiPartBuilder builder, RecordProcessor <RECORD> processor, params IterableStore[] warmUpStores) : base(name, statistics, threads) { this.Store = store; this.Processor = processor; long maxCount = store.MaxCount(); this.Progress = maxCount == -1 ? builder.ProgressForUnknownPart(name) : builder.ProgressForPart(name, maxCount); this._warmUpStores = warmUpStores; }