Search in sources :

Example 6 with MetricsManager

use of com.palantir.atlasdb.util.MetricsManager in project atlasdb by palantir.

the class TargetedSweepMetricsTest method canReportMetricsSeparatelyToDifferentManagers.

@Test
public void canReportMetricsSeparatelyToDifferentManagers() {
    metrics.updateEnqueuedWrites(CONS_ZERO, 10);
    metrics.updateEntriesRead(CONS_ZERO, 21);
    metrics.updateNumberOfTombstones(CONS_ZERO, 1);
    metrics.updateAbortedWritesDeleted(CONS_ZERO, 2);
    metrics.updateSweepTimestamp(CONS_ZERO, 7);
    metrics.registerEntriesReadInBatch(CONS_ZERO, 20);
    MetricsManager anotherMetricsManager = MetricsManagers.createForTests();
    TargetedSweepMetrics secondMetrics = TargetedSweepMetrics.createWithClock(anotherMetricsManager, kvs, () -> clockTime, METRICS_CONFIGURATION, 8);
    secondMetrics.updateEnqueuedWrites(CONS_ZERO, 5);
    secondMetrics.updateEntriesRead(CONS_ZERO, 5);
    secondMetrics.updateNumberOfTombstones(CONS_ZERO, 5);
    secondMetrics.updateAbortedWritesDeleted(CONS_ZERO, 5);
    secondMetrics.updateSweepTimestamp(CONS_ZERO, 5);
    secondMetrics.registerEntriesReadInBatch(CONS_ZERO, 15);
    assertThat(metricsManager).hasEnqueuedWritesConservativeEqualTo(10);
    assertThat(metricsManager).hasEntriesReadConservativeEqualTo(21);
    assertThat(metricsManager).hasTombstonesPutConservativeEqualTo(1);
    assertThat(metricsManager).hasAbortedWritesDeletedConservativeEquals(2);
    assertThat(metricsManager).hasSweepTimestampConservativeEqualTo(7L);
    assertThat(metricsManager).containsEntriesReadInBatchConservative(20L);
    assertThat(anotherMetricsManager).hasEnqueuedWritesConservativeEqualTo(5);
    assertThat(anotherMetricsManager).hasEntriesReadConservativeEqualTo(5);
    assertThat(anotherMetricsManager).hasTombstonesPutConservativeEqualTo(5);
    assertThat(anotherMetricsManager).hasAbortedWritesDeletedConservativeEquals(5);
    assertThat(anotherMetricsManager).hasSweepTimestampConservativeEqualTo(5L);
    assertThat(anotherMetricsManager).containsEntriesReadInBatchConservative(15L);
}
Also used : MetricsManager(com.palantir.atlasdb.util.MetricsManager) Test(org.junit.Test)

Example 7 with MetricsManager

use of com.palantir.atlasdb.util.MetricsManager in project atlasdb by palantir.

the class AbstractTargetedSweepTest method setup.

@Before
@Override
public void setup() {
    super.setup();
    MetricsManager metricsManager = MetricsManagers.createForTests();
    sweepQueue = TargetedSweeper.createUninitializedForTest(metricsManager, () -> ImmutableTargetedSweepRuntimeConfig.builder().shards(1).maximumPartitionsToBatchInSingleRead(8).build());
    sweepQueue.initializeWithoutRunning(timestampsSupplier, mock(TimelockService.class), kvs, txService, mock(TargetedSweepFollower.class));
}
Also used : MetricsManager(com.palantir.atlasdb.util.MetricsManager) TimelockService(com.palantir.lock.v2.TimelockService) TargetedSweepFollower(com.palantir.atlasdb.sweep.queue.TargetedSweepFollower) Before(org.junit.Before)

Example 8 with MetricsManager

use of com.palantir.atlasdb.util.MetricsManager in project atlasdb by palantir.

the class SweepTestUtils method setupTxManager.

public static TransactionManager setupTxManager(KeyValueService kvs, TimelockService legacyTimelockService, TimestampManagementService tsmService, SweepStrategyManager ssm, TransactionService txService) {
    MetricsManager metricsManager = MetricsManagers.createForTests();
    LockService lockService = LockServiceImpl.create(LockServerOptions.builder().isStandaloneServer(false).build());
    Supplier<AtlasDbConstraintCheckingMode> constraints = () -> AtlasDbConstraintCheckingMode.NO_CONSTRAINT_CHECKING;
    ConflictDetectionManager cdm = ConflictDetectionManagers.createWithoutWarmingCache(kvs);
    Cleaner cleaner = new NoOpCleaner();
    MultiTableSweepQueueWriter writer = TargetedSweeper.createUninitializedForTest(() -> 1);
    TransactionManager txManager = SerializableTransactionManager.createForTest(metricsManager, kvs, legacyTimelockService, tsmService, lockService, NoOpLockWatchManager.create(), txService, constraints, cdm, ssm, cleaner, AbstractTransactionTest.GET_RANGES_THREAD_POOL_SIZE, AbstractTransactionTest.DEFAULT_GET_RANGES_CONCURRENCY, writer);
    setupTables(kvs);
    writer.initialize(txManager);
    return txManager;
}
Also used : AtlasDbConstraintCheckingMode(com.palantir.atlasdb.transaction.api.AtlasDbConstraintCheckingMode) LockService(com.palantir.lock.LockService) MetricsManager(com.palantir.atlasdb.util.MetricsManager) NoOpCleaner(com.palantir.atlasdb.cleaner.NoOpCleaner) SerializableTransactionManager(com.palantir.atlasdb.transaction.impl.SerializableTransactionManager) TransactionManager(com.palantir.atlasdb.transaction.api.TransactionManager) MultiTableSweepQueueWriter(com.palantir.atlasdb.sweep.queue.MultiTableSweepQueueWriter) ConflictDetectionManager(com.palantir.atlasdb.transaction.impl.ConflictDetectionManager) Cleaner(com.palantir.atlasdb.cleaner.api.Cleaner) NoOpCleaner(com.palantir.atlasdb.cleaner.NoOpCleaner)

Example 9 with MetricsManager

use of com.palantir.atlasdb.util.MetricsManager in project atlasdb by palantir.

the class TimeLockAgent method createAndRegisterResources.

private void createAndRegisterResources() {
    registerTimeLockCorruptionJerseyFilter();
    registerTimeLockCorruptionNotifiers();
    registerPaxosResource();
    registerExceptionMappers();
    registerClientFeedbackService();
    namespaces = new TimelockNamespaces(metricsManager, this::createInvalidatingTimeLockServices, Suppliers.compose(TimeLockRuntimeConfiguration::maxNumberOfClients, runtime::get), DisabledNamespaces.create(sqliteDataSource));
    registerManagementResource();
    // Finally, register the health check, and endpoints associated with the clients.
    TimeLockResource resource = TimeLockResource.create(namespaces);
    healthCheck = paxosResources.leadershipComponents().healthCheck(namespaces::getActiveClients);
    registrar.accept(resource);
    Function<String, LockService> lockServiceGetter = namespace -> namespaces.get(namespace).getLockService();
    Function<String, AsyncTimelockService> asyncTimelockServiceGetter = namespace -> namespaces.get(namespace).getTimelockService();
    Function<String, BackupTimeLockServiceView> backupTimeLockServiceViewGetter = namespace -> namespaces.getForRestore(namespace);
    AuthHeaderValidator authHeaderValidator = getAuthHeaderValidator();
    RedirectRetryTargeter redirectRetryTargeter = redirectRetryTargeter();
    if (undertowRegistrar.isPresent()) {
        Consumer<UndertowService> presentUndertowRegistrar = undertowRegistrar.get();
        registerCorruptionHandlerWrappedService(presentUndertowRegistrar, ConjureTimelockResource.undertow(redirectRetryTargeter, asyncTimelockServiceGetter));
        registerCorruptionHandlerWrappedService(presentUndertowRegistrar, ConjureLockWatchingResource.undertow(redirectRetryTargeter, asyncTimelockServiceGetter));
        registerCorruptionHandlerWrappedService(presentUndertowRegistrar, ConjureLockV1Resource.undertow(redirectRetryTargeter, lockServiceGetter));
        registerCorruptionHandlerWrappedService(presentUndertowRegistrar, TimeLockPaxosHistoryProviderResource.undertow(corruptionComponents.localHistoryLoader()));
        registerCorruptionHandlerWrappedService(presentUndertowRegistrar, MultiClientConjureTimelockResource.undertow(redirectRetryTargeter, asyncTimelockServiceGetter));
        registerCorruptionHandlerWrappedService(presentUndertowRegistrar, AtlasBackupResource.undertow(authHeaderValidator, redirectRetryTargeter, asyncTimelockServiceGetter));
        registerCorruptionHandlerWrappedService(presentUndertowRegistrar, AtlasRestoreResource.undertow(authHeaderValidator, redirectRetryTargeter, backupTimeLockServiceViewGetter));
        registerCorruptionHandlerWrappedService(presentUndertowRegistrar, DisabledNamespacesUpdaterResource.undertow(authHeaderValidator, redirectRetryTargeter, namespaces));
    } else {
        registrar.accept(ConjureTimelockResource.jersey(redirectRetryTargeter, asyncTimelockServiceGetter));
        registrar.accept(ConjureLockWatchingResource.jersey(redirectRetryTargeter, asyncTimelockServiceGetter));
        registrar.accept(ConjureLockV1Resource.jersey(redirectRetryTargeter, lockServiceGetter));
        registrar.accept(TimeLockPaxosHistoryProviderResource.jersey(corruptionComponents.localHistoryLoader()));
        registrar.accept(MultiClientConjureTimelockResource.jersey(redirectRetryTargeter, asyncTimelockServiceGetter));
        registrar.accept(AtlasBackupResource.jersey(authHeaderValidator, redirectRetryTargeter, asyncTimelockServiceGetter));
        registrar.accept(AtlasRestoreResource.jersey(authHeaderValidator, redirectRetryTargeter, backupTimeLockServiceViewGetter));
        registrar.accept(DisabledNamespacesUpdaterResource.jersey(authHeaderValidator, redirectRetryTargeter, namespaces));
    }
}
Also used : FeedbackHandler(com.palantir.atlasdb.timelock.adjudicate.FeedbackHandler) URL(java.net.URL) UndertowService(com.palantir.conjure.java.undertow.lib.UndertowService) SafeIllegalStateException(com.palantir.logsafe.exceptions.SafeIllegalStateException) AllNodesDisabledNamespacesUpdater(com.palantir.atlasdb.timelock.management.AllNodesDisabledNamespacesUpdater) DatabaseTsBoundPersisterRuntimeConfiguration(com.palantir.timelock.config.DatabaseTsBoundPersisterRuntimeConfiguration) LeaderConfig(com.palantir.atlasdb.config.LeaderConfig) TimeLockInstallConfiguration(com.palantir.timelock.config.TimeLockInstallConfiguration) TsBoundPersisterConfiguration(com.palantir.timelock.config.TsBoundPersisterConfiguration) TimeLockRuntimeConfiguration(com.palantir.timelock.config.TimeLockRuntimeConfiguration) TimeLockActivityCheckerFactory(com.palantir.timelock.invariants.TimeLockActivityCheckerFactory) ConjureLockV1Resource(com.palantir.atlasdb.timelock.lock.v1.ConjureLockV1Resource) RedirectRetryTargeter(com.palantir.atlasdb.http.RedirectRetryTargeter) MetricsManager(com.palantir.atlasdb.util.MetricsManager) PTExecutors(com.palantir.common.concurrent.PTExecutors) DisabledNamespaces(com.palantir.atlasdb.timelock.management.DisabledNamespaces) UserAgent(com.palantir.conjure.java.api.config.service.UserAgent) ClusterConfiguration(com.palantir.timelock.config.ClusterConfiguration) Map(java.util.Map) NotCurrentLeaderExceptionMapper(com.palantir.atlasdb.http.NotCurrentLeaderExceptionMapper) ImmutableLeaderConfig(com.palantir.atlasdb.config.ImmutableLeaderConfig) AsyncTimelockService(com.palantir.atlasdb.timelock.AsyncTimelockService) Path(java.nio.file.Path) DatabaseTsBoundPersisterConfiguration(com.palantir.timelock.config.DatabaseTsBoundPersisterConfiguration) AtlasDbConstants(com.palantir.atlasdb.AtlasDbConstants) Refreshable(com.palantir.refreshable.Refreshable) ImmutableSet(com.google.common.collect.ImmutableSet) ACCEPTOR_SUBDIRECTORY_PATH(com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants.ACCEPTOR_SUBDIRECTORY_PATH) ConjureTimelockResource(com.palantir.atlasdb.timelock.ConjureTimelockResource) OrderableSlsVersion(com.palantir.sls.versions.OrderableSlsVersion) TimeLockClientFeedbackResource(com.palantir.atlasdb.timelock.adjudicate.TimeLockClientFeedbackResource) PersistentNamespaceContexts(com.palantir.atlasdb.timelock.management.PersistentNamespaceContexts) TimeLockManagementResource(com.palantir.atlasdb.timelock.management.TimeLockManagementResource) BackupTimeLockServiceView(com.palantir.atlasdb.timelock.BackupTimeLockServiceView) TimeLockServices(com.palantir.atlasdb.timelock.TimeLockServices) ConjureLockWatchingResource(com.palantir.atlasdb.timelock.ConjureLockWatchingResource) MultiClientConjureTimelockResource(com.palantir.atlasdb.timelock.batch.MultiClientConjureTimelockResource) ServerListConfig(com.palantir.atlasdb.config.ServerListConfig) ServicesConfigBlock(com.palantir.conjure.java.api.config.service.ServicesConfigBlock) List(java.util.List) AtlasBackupResource(com.palantir.atlasdb.backup.AtlasBackupResource) TooManyRequestsExceptionMapper(com.palantir.atlasdb.timelock.TooManyRequestsExceptionMapper) HikariDataSource(com.zaxxer.hikari.HikariDataSource) Optional(java.util.Optional) Client(com.palantir.paxos.Client) RestrictedTimeLockRuntimeConfiguration(com.palantir.timelock.config.RestrictedTimeLockRuntimeConfiguration) RemotingClientConfigs(com.palantir.atlasdb.config.RemotingClientConfigs) JerseyCorruptionFilter(com.palantir.timelock.corruption.handle.JerseyCorruptionFilter) PaxosResourcesFactory(com.palantir.atlasdb.timelock.paxos.PaxosResourcesFactory) ImmutableServerListConfig(com.palantir.atlasdb.config.ImmutableServerListConfig) PaxosResources(com.palantir.atlasdb.timelock.paxos.PaxosResources) SafeLoggerFactory(com.palantir.logsafe.logger.SafeLoggerFactory) HealthStatusReport(com.palantir.atlasdb.timelock.adjudicate.HealthStatusReport) DisabledNamespacesUpdaterResource(com.palantir.atlasdb.timelock.management.DisabledNamespacesUpdaterResource) Function(java.util.function.Function) Supplier(java.util.function.Supplier) SafeLogger(com.palantir.logsafe.logger.SafeLogger) AtlasRestoreResource(com.palantir.atlasdb.backup.AtlasRestoreResource) NoSimultaneousServiceCheck(com.palantir.timelock.invariants.NoSimultaneousServiceCheck) SafeArg(com.palantir.logsafe.SafeArg) TimeLockPersistenceInvariants(com.palantir.timelock.config.TimeLockPersistenceInvariants) BearerToken(com.palantir.tokens.auth.BearerToken) LEARNER_SUBDIRECTORY_PATH(com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants.LEARNER_SUBDIRECTORY_PATH) AuxiliaryRemotingParameters(com.palantir.atlasdb.config.AuxiliaryRemotingParameters) Suppliers(com.google.common.base.Suppliers) TimelockNamespaces(com.palantir.atlasdb.timelock.TimelockNamespaces) CorruptionHealthReport(com.palantir.timelock.corruption.detection.CorruptionHealthReport) TimestampStorage(com.palantir.timelock.management.TimestampStorage) TimeLockResource(com.palantir.atlasdb.timelock.TimeLockResource) LeaderElectionMetricAggregator(com.palantir.atlasdb.timelock.adjudicate.LeaderElectionMetricAggregator) ServiceLifecycleController(com.palantir.atlasdb.timelock.management.ServiceLifecycleController) UndertowCorruptionHandlerService(com.palantir.timelock.corruption.handle.UndertowCorruptionHandlerService) PersistenceConfigStore(com.palantir.timelock.store.PersistenceConfigStore) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) ImmutableTimelockPaxosInstallationContext(com.palantir.atlasdb.timelock.paxos.ImmutableTimelockPaxosInstallationContext) SqliteBlobStore(com.palantir.timelock.store.SqliteBlobStore) LEADER_PAXOS_NAMESPACE(com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants.LEADER_PAXOS_NAMESPACE) CorruptionNotifierResource(com.palantir.timelock.corruption.handle.CorruptionNotifierResource) Consumer(java.util.function.Consumer) PaxosTsBoundPersisterConfiguration(com.palantir.timelock.config.PaxosTsBoundPersisterConfiguration) KeyValueServiceRuntimeConfig(com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig) LockService(com.palantir.lock.LockService) LockLog(com.palantir.atlasdb.timelock.lock.LockLog) TimeLockCorruptionComponents(com.palantir.atlasdb.timelock.paxos.TimeLockCorruptionComponents) ImmutableTimestampStorage(com.palantir.timelock.management.ImmutableTimestampStorage) ManagedTimestampService(com.palantir.timestamp.ManagedTimestampService) AuthHeaderValidator(com.palantir.atlasdb.backup.AuthHeaderValidator) AllNodesDisabledNamespacesUpdaterFactory(com.palantir.atlasdb.timelock.management.AllNodesDisabledNamespacesUpdaterFactory) TimeLockPaxosHistoryProviderResource(com.palantir.timelock.history.remote.TimeLockPaxosHistoryProviderResource) VisibleForTesting(com.google.common.annotations.VisibleForTesting) BlockingTimeoutExceptionMapper(com.palantir.atlasdb.http.BlockingTimeoutExceptionMapper) DialogueClients(com.palantir.dialogue.clients.DialogueClients) Preconditions(com.palantir.logsafe.Preconditions) ServiceDiscoveringDatabaseTimeLockSupplier(com.palantir.timelock.ServiceDiscoveringDatabaseTimeLockSupplier) LockService(com.palantir.lock.LockService) BackupTimeLockServiceView(com.palantir.atlasdb.timelock.BackupTimeLockServiceView) TimelockNamespaces(com.palantir.atlasdb.timelock.TimelockNamespaces) TimeLockRuntimeConfiguration(com.palantir.timelock.config.TimeLockRuntimeConfiguration) RestrictedTimeLockRuntimeConfiguration(com.palantir.timelock.config.RestrictedTimeLockRuntimeConfiguration) TimeLockResource(com.palantir.atlasdb.timelock.TimeLockResource) RedirectRetryTargeter(com.palantir.atlasdb.http.RedirectRetryTargeter) UndertowService(com.palantir.conjure.java.undertow.lib.UndertowService) AsyncTimelockService(com.palantir.atlasdb.timelock.AsyncTimelockService) AuthHeaderValidator(com.palantir.atlasdb.backup.AuthHeaderValidator)

Example 10 with MetricsManager

use of com.palantir.atlasdb.util.MetricsManager in project atlasdb by palantir.

the class TimeLockServerLauncher method run.

@Override
public void run(CombinedTimeLockServerConfiguration configuration, Environment environment) throws JsonProcessingException {
    environment.getObjectMapper().registerModule(new Jdk8Module()).registerModule(new JavaTimeModule());
    environment.jersey().register(ConjureJerseyFeature.INSTANCE);
    environment.jersey().register(new EmptyOptionalTo204ExceptionMapper());
    MetricsManager metricsManager = MetricsManagers.of(environment.metrics(), taggedMetricRegistry);
    Consumer<Object> registrar = component -> environment.jersey().register(component);
    log.info("Paxos configuration\n{}", UnsafeArg.of("paxosConfig", environment.getObjectMapper().writerWithDefaultPrettyPrinter().writeValueAsString(configuration.install().paxos())));
    TimeLockRuntimeConfiguration runtime = configuration.runtime();
    TimeLockAgent timeLockAgent = TimeLockAgent.create(metricsManager, configuration.install(), // this won't actually live reload
    Refreshable.only(runtime), runtime.clusterSnapshot(), USER_AGENT, CombinedTimeLockServerConfiguration.threadPoolSize(), CombinedTimeLockServerConfiguration.blockingTimeoutMs(), registrar, Optional.empty(), OrderableSlsVersion.valueOf("0.0.0"), environment.getObjectMapper(), () -> System.exit(0));
    environment.lifecycle().manage(new Managed() {

        @Override
        public void start() {
        }

        @Override
        public void stop() {
        }
    });
    environment.lifecycle().addLifeCycleListener(new LifeCycle.Listener() {

        @Override
        public void lifeCycleStarting(LifeCycle event) {
        }

        @Override
        public void lifeCycleStarted(LifeCycle event) {
        }

        @Override
        public void lifeCycleFailure(LifeCycle event, Throwable cause) {
            shutdownFuture.setException(cause);
        }

        @Override
        public void lifeCycleStopping(LifeCycle event) {
        }

        @Override
        public void lifeCycleStopped(LifeCycle event) {
            timeLockAgent.shutdown();
            shutdownFuture.set(null);
        }
    });
}
Also used : SafeLoggerFactory(com.palantir.logsafe.logger.SafeLoggerFactory) ListenableFuture(com.google.common.util.concurrent.ListenableFuture) Provider(javax.ws.rs.ext.Provider) LifeCycle(org.eclipse.jetty.util.component.LifeCycle) Bootstrap(io.dropwizard.setup.Bootstrap) ObjectMappers(com.palantir.conjure.java.serialization.ObjectMappers) ExceptionMapper(javax.ws.rs.ext.ExceptionMapper) TimeLockAgent(com.palantir.timelock.paxos.TimeLockAgent) SettableFuture(com.google.common.util.concurrent.SettableFuture) SafeLogger(com.palantir.logsafe.logger.SafeLogger) TimeLockRuntimeConfiguration(com.palantir.timelock.config.TimeLockRuntimeConfiguration) MetricsManager(com.palantir.atlasdb.util.MetricsManager) UserAgent(com.palantir.conjure.java.api.config.service.UserAgent) JavaTimeModule(com.fasterxml.jackson.datatype.jsr310.JavaTimeModule) Refreshable(com.palantir.refreshable.Refreshable) Environment(io.dropwizard.setup.Environment) Application(io.dropwizard.Application) MetricRegistry(com.codahale.metrics.MetricRegistry) OrderableSlsVersion(com.palantir.sls.versions.OrderableSlsVersion) DiscoverableSubtypeResolver(io.dropwizard.jackson.DiscoverableSubtypeResolver) SharedMetricRegistries(com.codahale.metrics.SharedMetricRegistries) JsonProcessingException(com.fasterxml.jackson.core.JsonProcessingException) DefaultTaggedMetricRegistry(com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry) UUID(java.util.UUID) TaggedMetricRegistry(com.palantir.tritium.metrics.registry.TaggedMetricRegistry) Jdk8Module(com.fasterxml.jackson.datatype.jdk8.Jdk8Module) MetricsManagers(com.palantir.atlasdb.util.MetricsManagers) Consumer(java.util.function.Consumer) EmptyOptionalException(io.dropwizard.jersey.optional.EmptyOptionalException) Response(javax.ws.rs.core.Response) CombinedTimeLockServerConfiguration(com.palantir.atlasdb.timelock.config.CombinedTimeLockServerConfiguration) UnsafeArg(com.palantir.logsafe.UnsafeArg) NonBlockingFileAppenderFactory(com.palantir.atlasdb.timelock.logging.NonBlockingFileAppenderFactory) ConjureJerseyFeature(com.palantir.conjure.java.server.jersey.ConjureJerseyFeature) Managed(io.dropwizard.lifecycle.Managed) Optional(java.util.Optional) LifeCycle(org.eclipse.jetty.util.component.LifeCycle) TimeLockAgent(com.palantir.timelock.paxos.TimeLockAgent) JavaTimeModule(com.fasterxml.jackson.datatype.jsr310.JavaTimeModule) TimeLockRuntimeConfiguration(com.palantir.timelock.config.TimeLockRuntimeConfiguration) Jdk8Module(com.fasterxml.jackson.datatype.jdk8.Jdk8Module) MetricsManager(com.palantir.atlasdb.util.MetricsManager) Managed(io.dropwizard.lifecycle.Managed)

Aggregations

MetricsManager (com.palantir.atlasdb.util.MetricsManager)24 Optional (java.util.Optional)9 UserAgent (com.palantir.conjure.java.api.config.service.UserAgent)8 List (java.util.List)7 Refreshable (com.palantir.refreshable.Refreshable)6 ImmutableSet (com.google.common.collect.ImmutableSet)5 TableReference (com.palantir.atlasdb.keyvalue.api.TableReference)5 MetricsManagers (com.palantir.atlasdb.util.MetricsManagers)5 ManagedTimestampService (com.palantir.timestamp.ManagedTimestampService)5 Set (java.util.Set)5 Test (org.junit.Test)5 AuxiliaryRemotingParameters (com.palantir.atlasdb.config.AuxiliaryRemotingParameters)4 ServerListConfig (com.palantir.atlasdb.config.ServerListConfig)4 MultiTableSweepQueueWriter (com.palantir.atlasdb.sweep.queue.MultiTableSweepQueueWriter)4 TransactionManager (com.palantir.atlasdb.transaction.api.TransactionManager)4 ConflictDetectionManager (com.palantir.atlasdb.transaction.impl.ConflictDetectionManager)4 SafeLogger (com.palantir.logsafe.logger.SafeLogger)4 SafeLoggerFactory (com.palantir.logsafe.logger.SafeLoggerFactory)4 Map (java.util.Map)4 Collectors (java.util.stream.Collectors)4