//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Before public void setUp() public virtual void SetUp() { Config = Config.defaults(); Clock = Clocks.fakeClock(); LogPruning = LogPruning.NO_PRUNING; LogProvider = NullLogProvider.Instance; IntervalTx = Config.get(GraphDatabaseSettings.check_point_interval_tx); IntervalTime = Config.get(GraphDatabaseSettings.check_point_interval_time); TriggerConsumer = new LinkedBlockingQueue <string>(); Triggered = TriggerConsumer.offer; NotTriggered = s => fail("Should not have triggered: " + s); }
public override CheckPointThreshold CreateThreshold(Config config, SystemNanoClock clock, LogPruning logPruning, LogProvider logProvider) { return(new VolumetricCheckPointThreshold(logPruning)); }
/// <summary> /// Create a <seealso cref="CheckPointThreshold"/> instance based on this policy and the given configurations. /// </summary> public abstract CheckPointThreshold CreateThreshold(Config config, SystemNanoClock clock, LogPruning logPruning, LogProvider logProvider);
public VolumetricCheckPointThreshold(LogPruning logPruning) : base("tx log pruning") { this._logPruning = logPruning; }
public override CheckPointThreshold CreateThreshold(Config config, SystemNanoClock clock, LogPruning logPruning, LogProvider logProvider) { return(new ContinuousCheckPointThreshold()); }
public abstract CheckPointThreshold CreateThreshold(Org.Neo4j.Kernel.configuration.Config config, Org.Neo4j.Time.SystemNanoClock clock, Org.Neo4j.Kernel.impl.transaction.log.pruning.LogPruning logPruning, Org.Neo4j.Logging.LogProvider logProvider);
public override CheckPointThreshold CreateThreshold(Config config, SystemNanoClock clock, LogPruning logPruning, LogProvider logProvider) { int txThreshold = config.Get(GraphDatabaseSettings.check_point_interval_tx); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final CountCommittedTransactionThreshold countCommittedTransactionThreshold = new CountCommittedTransactionThreshold(txThreshold); CountCommittedTransactionThreshold countCommittedTransactionThreshold = new CountCommittedTransactionThreshold(txThreshold); long timeMillisThreshold = config.Get(GraphDatabaseSettings.check_point_interval_time).toMillis(); TimeCheckPointThreshold timeCheckPointThreshold = new TimeCheckPointThreshold(timeMillisThreshold, clock); return(or(countCommittedTransactionThreshold, timeCheckPointThreshold)); }