//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void createBufferedIdComponentsByDefault() public virtual void CreateBufferedIdComponentsByDefault() { ClusterManager.ManagedCluster managedCluster = ClusterRule.startCluster(); DependencyResolver dependencyResolver = managedCluster.Master.DependencyResolver; IdController idController = dependencyResolver.ResolveDependency(typeof(IdController)); IdGeneratorFactory idGeneratorFactory = dependencyResolver.ResolveDependency(typeof(IdGeneratorFactory)); assertThat(idController, instanceOf(typeof(BufferedIdController))); assertThat(idGeneratorFactory, instanceOf(typeof(BufferingIdGeneratorFactory))); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void createBufferedIdComponentsByDefault() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void CreateBufferedIdComponentsByDefault() { Cluster cluster = ClusterRule.startCluster(); CoreClusterMember leader = cluster.awaitLeader(); DependencyResolver dependencyResolver = leader.Database().DependencyResolver; IdController idController = dependencyResolver.ResolveDependency(typeof(IdController)); IdGeneratorFactory idGeneratorFactory = dependencyResolver.ResolveDependency(typeof(IdGeneratorFactory)); assertThat(idController, instanceOf(typeof(BufferedIdController))); assertThat(idGeneratorFactory, instanceOf(typeof(FreeIdFilteredIdGeneratorFactory))); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void createBufferedIdComponentsByDefault() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void CreateBufferedIdComponentsByDefault() { //JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET: //ORIGINAL LINE: org.neo4j.causalclustering.discovery.Cluster<?> cluster = clusterRule.startCluster(); Cluster <object> cluster = ClusterRule.startCluster(); CoreClusterMember leader = cluster.AwaitLeader(); DependencyResolver dependencyResolver = leader.Database().DependencyResolver; IdController idController = dependencyResolver.ResolveDependency(typeof(IdController)); IdGeneratorFactory idGeneratorFactory = dependencyResolver.ResolveDependency(typeof(IdGeneratorFactory)); assertThat(idController, instanceOf(typeof(BufferedIdController))); assertThat(idGeneratorFactory, instanceOf(typeof(FreeIdFilteredIdGeneratorFactory))); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void createBufferedIdComponentsByDefault() internal virtual void CreateBufferedIdComponentsByDefault() { GraphDatabaseAPI database = ( GraphDatabaseAPI )(new GraphDatabaseFactory()).newEmbeddedDatabase(_testDirectory.storeDir()); try { DependencyResolver dependencyResolver = database.DependencyResolver; IdController idController = dependencyResolver.ResolveDependency(typeof(IdController)); IdGeneratorFactory idGeneratorFactory = dependencyResolver.ResolveDependency(typeof(IdGeneratorFactory)); assertThat(idController, instanceOf(typeof(BufferedIdController))); assertThat(idGeneratorFactory, instanceOf(typeof(BufferingIdGeneratorFactory))); } finally { database.Shutdown(); } }
internal ExtendedRecordStorageEngine(DatabaseLayout databaseLayout, Config config, PageCache pageCache, FileSystemAbstraction fs, LogProvider logProvider, LogProvider userLogProvider, TokenHolders tokenHolders, SchemaState schemaState, ConstraintSemantics constraintSemantics, JobScheduler scheduler, TokenNameLookup tokenNameLookup, LockService lockService, IndexProviderMap indexProviderMap, IndexingService.Monitor indexingServiceMonitor, DatabaseHealth databaseHealth, ExplicitIndexProvider explicitIndexProviderLookup, IndexConfigStore indexConfigStore, IdOrderingQueue explicitIndexTransactionOrdering, IdGeneratorFactory idGeneratorFactory, IdController idController, System.Func <BatchTransactionApplierFacade, BatchTransactionApplierFacade> transactionApplierTransformer, Monitors monitors, RecoveryCleanupWorkCollector recoveryCleanupWorkCollector, OperationalMode operationalMode) : base(databaseLayout, config, pageCache, fs, logProvider, userLogProvider, tokenHolders, schemaState, constraintSemantics, scheduler, tokenNameLookup, lockService, indexProviderMap, indexingServiceMonitor, databaseHealth, explicitIndexProviderLookup, indexConfigStore, explicitIndexTransactionOrdering, idGeneratorFactory, idController, monitors, recoveryCleanupWorkCollector, operationalMode, EmptyVersionContextSupplier.EMPTY) { this.TransactionApplierTransformer = transactionApplierTransformer; }
private DatabaseIdContext CreateIdContext(IdGeneratorFactory idGeneratorFactory, IdController idController) { return(new DatabaseIdContext(_factoryWrapper.apply(idGeneratorFactory), idController)); }
internal DatabaseIdContext(IdGeneratorFactory idGeneratorFactory, IdController idController) { this._idGeneratorFactory = idGeneratorFactory; this._idController = idController; }