public boolean isSoapServerRecordResponseMessages() { return soapServerRecordResponseMessages.getValue(); } }
Integer getZipkinMaxQueuedBytes() { return zipkinMaxQueuedBytes.getValue(); } }
public String getHostName() { return hostName.getValue(); }
public int getElasticsearchReportingInterval() { return reportingIntervalElasticsearch.getValue(); }
public boolean isDebugInstrumentation() { return debugInstrumentation.getValue(); }
/** * Returns the current value * * @return the current value */ @JsonIgnore public T get() { return getValue(); }
@Test public void testGetLowerStrings() { assertEquals(Collections.singleton("foobar"), lowerStrings.getValue()); }
@Test public void testGetInt() { assertEquals(Long.valueOf(2L), aLong.getValue()); }
@Test public void testInvalidPatterns() { assertTrue(invalidPatternMap.getValue().isEmpty()); }
@Test public void testInvalidPatternSyntax() { assertTrue(invalidPatternSyntax.getValue().isEmpty()); }
@Test public void testGetInvalidLong() { assertEquals(Long.valueOf(2L), invalidLong.getValue()); }
@Test public void testCachingAndReload() { assertEquals("testCaching", testCaching.getValue()); configSource.add("testCaching", "testCaching2"); assertEquals("testCaching", testCaching.getValue()); configuration.reloadDynamicConfigurationOptions(); assertEquals("testCaching", testCaching.getValue()); configuration.reloadAllConfigurationOptions(); assertEquals("testCaching2", testCaching.getValue()); }
public ElasticsearchClient getElasticsearchClient() { if (elasticsearchClient == null) { elasticsearchClient = new ElasticsearchClient(this, new HttpClient(), elasticsearchAvailabilityCheckPeriodSec.getValue(), initElasticsearchAvailabilityObservers(Stagemonitor.getConfiguration())); } return elasticsearchClient; }
@Test public void testGetString() { assertEquals("fooBar", string.getValue()); }
@Test public void testValidationFailedPerTypeOption() throws Exception { assertThatThrownBy(() -> tracingPlugin.getRateLimitSpansPerMinutePercentPerTypeOption() .update(singletonMap("jdbc", 10.0), SimpleSource.NAME)) .isInstanceOf(IllegalArgumentException.class); assertThat(tracingPlugin.getRateLimitSpansPerMinutePercentPerTypeOption().getValue()).isEqualTo(emptyMap()); }
@Test public void testValidationFailed() throws Exception { assertThatThrownBy(() -> tracingPlugin.getDefaultRateLimitSpansPercentOption() .update(10.0, SimpleSource.NAME)) .isInstanceOf(IllegalArgumentException.class); assertThat(tracingPlugin.getDefaultRateLimitSpansPercentOption().getValue()).isEqualTo(1.0); }
@Override public void onFirstOperation(SpanWrapper spanWrapper) { final CacheManager cacheManager = CacheManager.getCacheManager(ehCacheNameOption.getValue()); final HealthCheck check; if (cacheManager != null) { monitorCaches(cacheManager); check = ImmediateResult.of(HealthCheck.Result.healthy("CacheManager found after first operation")); } else { check = ImmediateResult.of(HealthCheck.Result.unhealthy("CacheManager not found after first operation")); } healthCheckRegistry.register("EhCache CacheManager", check); }