//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @After public void resetFeatureToggle()
        public void resetFeatureToggle()
        {
            FeatureToggles.clear(typeof(MultipleIndexPopulator), BATCH_SIZE_NAME);
            FeatureToggles.clear(typeof(BatchingMultipleIndexPopulator), BATCH_SIZE_NAME);
            FeatureToggles.clear(typeof(MultipleIndexPopulator), QUEUE_THRESHOLD_NAME);
            FeatureToggles.clear(typeof(BatchingMultipleIndexPopulator), QUEUE_THRESHOLD_NAME);
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldPopulateMultipleIndexPopulatorsUnderStressMultiThreaded() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldPopulateMultipleIndexPopulatorsUnderStressMultiThreaded()
        {
            int concurrentUpdatesQueueFlushThreshold = _random.Next(100, 5000);

            FeatureToggles.set(typeof(BatchingMultipleIndexPopulator), BatchingMultipleIndexPopulator.QUEUE_THRESHOLD_NAME, concurrentUpdatesQueueFlushThreshold);
            try
            {
                ReadConfigAndRunTest(true);
            }
            finally
            {
                FeatureToggles.clear(typeof(BatchingMultipleIndexPopulator), BatchingMultipleIndexPopulator.QUEUE_THRESHOLD_NAME);
            }
        }
Пример #3
0
 private static void ClearProperty(string name)
 {
     FeatureToggles.clear(typeof(BatchingMultipleIndexPopulator), name);
 }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @AfterClass public static void restoreFeatureToggles()
        public static void RestoreFeatureToggles()
        {
            FeatureToggles.clear(typeof(GenericNativeIndexPopulator), BLOCK_BASED_POPULATION_NAME);
            FeatureToggles.clear(typeof(BlockBasedIndexPopulator), BLOCK_SIZE_NAME);
        }
Пример #5
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @After public void tearDown()
        public virtual void TearDown()
        {
            FeatureToggles.clear(typeof(MultipleIndexPopulator), MultipleIndexPopulator.QUEUE_THRESHOLD_NAME);
            FeatureToggles.clear(typeof(BatchingMultipleIndexPopulator), MultipleIndexPopulator.QUEUE_THRESHOLD_NAME);
            FeatureToggles.clear(typeof(MultipleIndexPopulator), "print_debug");
        }