@Override public void initialize(Bootstrap<AtlasDbEteConfiguration> bootstrap) { bootstrap.setMetricRegistry(SharedMetricRegistries.getOrCreate("AtlasDbTest")); enableEnvironmentVariablesInConfig(bootstrap); bootstrap.getObjectMapper().registerModule(new Jdk8Module()); }
@Override public void initialize(Bootstrap<TimeLockServerConfiguration> bootstrap) { MetricRegistry metricRegistry = SharedMetricRegistries .getOrCreate("AtlasDbTest" + UUID.randomUUID().toString()); TaggedMetricRegistry taggedMetricRegistry = new DefaultTaggedMetricRegistry(); bootstrap.setMetricRegistry(metricRegistry); bootstrap.getObjectMapper().registerSubtypes(NonBlockingFileAppenderFactory.class); bootstrap.getObjectMapper().registerModule(new Jdk8Module()); super.initialize(bootstrap); }
@Override public void initialize(Bootstrap<TimelockBenchmarkClientConfig> bootstrap) { MetricRegistry metricRegistry = MetricRegistries.createWithHdrHistogramReservoirs(); bootstrap.setMetricRegistry(metricRegistry); bootstrap.getObjectMapper().registerModule(new Jdk8Module()); bootstrap.getObjectMapper().registerSubtypes(NonBlockingFileAppenderFactory.class); super.initialize(bootstrap); }