Search in sources :

Example 1 with TimelockBenchmarkServerConfig

use of com.palantir.atlasdb.timelock.benchmarks.server.config.TimelockBenchmarkServerConfig in project atlasdb by palantir.

the class TimelockBenchmarkServerLauncher method run.

@Override
public void run(TimelockBenchmarkServerConfig configuration, Environment environment) throws Exception {
    FeignOkHttpClients.globalClientSettings = client -> client.hostnameVerifier((ig, nored) -> true);
    TimeLockAgent agent = TimeLockAgent.create(configuration.install(), // this won't actually live reload
    configuration::runtime, ImmutableTimeLockDeprecatedConfiguration.builder().build(), environment.jersey()::register);
}
Also used : Environment(io.dropwizard.setup.Environment) ImmutableTimeLockDeprecatedConfiguration(com.palantir.timelock.config.ImmutableTimeLockDeprecatedConfiguration) Application(io.dropwizard.Application) MetricRegistry(com.codahale.metrics.MetricRegistry) Bootstrap(io.dropwizard.setup.Bootstrap) AtlasDbMetrics(com.palantir.atlasdb.util.AtlasDbMetrics) TimeLockAgent(com.palantir.timelock.paxos.TimeLockAgent) DefaultTaggedMetricRegistry(com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry) FeignOkHttpClients(com.palantir.atlasdb.http.FeignOkHttpClients) MetricRegistries(com.palantir.tritium.metrics.MetricRegistries) TaggedMetricRegistry(com.palantir.tritium.metrics.registry.TaggedMetricRegistry) Jdk8Module(com.fasterxml.jackson.datatype.jdk8.Jdk8Module) TimelockBenchmarkServerConfig(com.palantir.atlasdb.timelock.benchmarks.server.config.TimelockBenchmarkServerConfig) NonBlockingFileAppenderFactory(com.palantir.atlasdb.timelock.logging.NonBlockingFileAppenderFactory) TimeLockAgent(com.palantir.timelock.paxos.TimeLockAgent)

Aggregations

MetricRegistry (com.codahale.metrics.MetricRegistry)1 Jdk8Module (com.fasterxml.jackson.datatype.jdk8.Jdk8Module)1 FeignOkHttpClients (com.palantir.atlasdb.http.FeignOkHttpClients)1 TimelockBenchmarkServerConfig (com.palantir.atlasdb.timelock.benchmarks.server.config.TimelockBenchmarkServerConfig)1 NonBlockingFileAppenderFactory (com.palantir.atlasdb.timelock.logging.NonBlockingFileAppenderFactory)1 AtlasDbMetrics (com.palantir.atlasdb.util.AtlasDbMetrics)1 ImmutableTimeLockDeprecatedConfiguration (com.palantir.timelock.config.ImmutableTimeLockDeprecatedConfiguration)1 TimeLockAgent (com.palantir.timelock.paxos.TimeLockAgent)1 MetricRegistries (com.palantir.tritium.metrics.MetricRegistries)1 DefaultTaggedMetricRegistry (com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry)1 TaggedMetricRegistry (com.palantir.tritium.metrics.registry.TaggedMetricRegistry)1 Application (io.dropwizard.Application)1 Bootstrap (io.dropwizard.setup.Bootstrap)1 Environment (io.dropwizard.setup.Environment)1