Class CommonConfiguration

java.lang.Object
pl.allegro.tech.hermes.consumers.config.CommonConfiguration

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    io.micrometer.core.instrument.MeterRegistry
    compositeMeterRegistry(List<io.micrometer.core.instrument.MeterRegistry> registries)
     
    pl.allegro.tech.hermes.common.di.factories.CuratorClientFactory
    curatorClientFactory(ZookeeperClustersProperties zookeeperClustersProperties, pl.allegro.tech.hermes.infrastructure.dc.DatacenterNameProvider datacenterNameProvider)
     
    pl.allegro.tech.hermes.infrastructure.dc.DatacenterNameProvider
    dcNameProvider(DatacenterNameProperties datacenterNameProperties)
     
    pl.allegro.tech.hermes.common.concurrent.ExecutorServiceFactory
     
    pl.allegro.tech.hermes.domain.group.GroupRepository
    groupRepository(org.apache.curator.framework.CuratorFramework zookeeper, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths paths, com.fasterxml.jackson.databind.ObjectMapper mapper)
     
    org.apache.curator.framework.CuratorFramework
    hermesCurator(ZookeeperClustersProperties zookeeperClustersProperties, pl.allegro.tech.hermes.common.di.factories.CuratorClientFactory curatorClientFactory, pl.allegro.tech.hermes.infrastructure.dc.DatacenterNameProvider datacenterNameProvider)
     
    pl.allegro.tech.hermes.common.metric.HermesMetrics
    hermesMetrics(com.codahale.metrics.MetricRegistry metricRegistry, pl.allegro.tech.hermes.metrics.PathsCompiler pathsCompiler)
     
    pl.allegro.tech.hermes.common.util.InstanceIdResolver
     
    pl.allegro.tech.hermes.common.metric.executor.InstrumentedExecutorServiceFactory
    instrumentedExecutorServiceFactory(pl.allegro.tech.hermes.common.metric.executor.ThreadPoolMetrics threadPoolMetrics)
     
    pl.allegro.tech.hermes.common.message.wrapper.CompositeMessageContentWrapper
    messageContentWrapper(com.fasterxml.jackson.databind.ObjectMapper mapper, Clock clock, pl.allegro.tech.hermes.schema.SchemaRepository schemaRepository, pl.allegro.tech.hermes.common.metric.MetricsFacade metricsFacade, SchemaProperties schemaProperties, ContentRootProperties contentRootProperties)
     
    com.codahale.metrics.MetricRegistry
    metricRegistry(MetricsProperties metricsProperties, GraphiteProperties graphiteProperties, pl.allegro.tech.hermes.common.util.InstanceIdResolver instanceIdResolver, String moduleName)
     
    pl.allegro.tech.hermes.common.metric.MetricsFacade
    metricsFacade(io.micrometer.core.instrument.MeterRegistry meterRegistry, pl.allegro.tech.hermes.common.metric.HermesMetrics hermesMetrics)
     
    io.micrometer.prometheus.PrometheusMeterRegistry
    micrometerRegistry(pl.allegro.tech.hermes.common.di.factories.MicrometerRegistryParameters micrometerRegistryParameters, io.micrometer.prometheus.PrometheusConfig prometheusConfig, pl.allegro.tech.hermes.common.metric.counter.CounterStorage counterStorage)
     
    pl.allegro.tech.hermes.infrastructure.zookeeper.cache.ModelAwareZookeeperNotifyingCache
    modelAwareZookeeperNotifyingCache(org.apache.curator.framework.CuratorFramework curator, ZookeeperClustersProperties zookeeperClustersProperties, pl.allegro.tech.hermes.infrastructure.dc.DatacenterNameProvider datacenterNameProvider)
     
     
    pl.allegro.tech.hermes.domain.oauth.OAuthProviderRepository
    oAuthProviderRepository(org.apache.curator.framework.CuratorFramework zookeeper, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths paths, com.fasterxml.jackson.databind.ObjectMapper mapper)
     
    com.fasterxml.jackson.databind.ObjectMapper
    objectMapper(SchemaProperties schemaProperties)
     
    pl.allegro.tech.hermes.metrics.PathsCompiler
    pathsCompiler(pl.allegro.tech.hermes.common.util.InstanceIdResolver instanceIdResolver)
     
    pl.allegro.tech.hermes.common.kafka.KafkaNamesMapper
     
    pl.allegro.tech.hermes.infrastructure.zookeeper.counter.SharedCounter
    sharedCounter(org.apache.curator.framework.CuratorFramework zookeeper, ZookeeperClustersProperties zookeeperClustersProperties, MetricsProperties metricsProperties, pl.allegro.tech.hermes.infrastructure.dc.DatacenterNameProvider datacenterNameProvider)
     
    pl.allegro.tech.hermes.common.kafka.offset.SubscriptionOffsetChangeIndicator
    subscriptionOffsetChangeIndicatorFactory(org.apache.curator.framework.CuratorFramework zookeeper, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths paths, pl.allegro.tech.hermes.domain.subscription.SubscriptionRepository subscriptionRepository)
     
    pl.allegro.tech.hermes.domain.subscription.SubscriptionRepository
    subscriptionRepository(org.apache.curator.framework.CuratorFramework zookeeper, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths paths, com.fasterxml.jackson.databind.ObjectMapper mapper, pl.allegro.tech.hermes.domain.topic.TopicRepository topicRepository)
     
    pl.allegro.tech.hermes.common.metric.executor.ThreadPoolMetrics
    threadPoolMetrics(pl.allegro.tech.hermes.common.metric.MetricsFacade metricsFacade)
     
    pl.allegro.tech.hermes.domain.topic.TopicRepository
    topicRepository(org.apache.curator.framework.CuratorFramework zookeeper, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths paths, com.fasterxml.jackson.databind.ObjectMapper mapper, pl.allegro.tech.hermes.domain.group.GroupRepository groupRepository)
     
    pl.allegro.tech.hermes.common.message.undelivered.UndeliveredMessageLog
    undeliveredMessageLog(org.apache.curator.framework.CuratorFramework zookeeper, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths paths, com.fasterxml.jackson.databind.ObjectMapper mapper, pl.allegro.tech.hermes.common.metric.MetricsFacade metricsFacade)
     
    pl.allegro.tech.hermes.domain.workload.constraints.WorkloadConstraintsRepository
    workloadConstraintsRepository(org.apache.curator.framework.CuratorFramework curator, com.fasterxml.jackson.databind.ObjectMapper mapper, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths paths)
     
    pl.allegro.tech.hermes.common.admin.zookeeper.ZookeeperAdminCache
    zookeeperAdminCache(pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths zookeeperPaths, org.apache.curator.framework.CuratorFramework client, com.fasterxml.jackson.databind.ObjectMapper objectMapper, Clock clock)
     
    pl.allegro.tech.hermes.common.metric.counter.CounterStorage
    zookeeperCounterStorage(pl.allegro.tech.hermes.infrastructure.zookeeper.counter.SharedCounter sharedCounter, pl.allegro.tech.hermes.domain.subscription.SubscriptionRepository subscriptionRepository, pl.allegro.tech.hermes.metrics.PathsCompiler pathsCompiler, ZookeeperClustersProperties zookeeperClustersProperties, pl.allegro.tech.hermes.infrastructure.dc.DatacenterNameProvider datacenterNameProvider)
     
    pl.allegro.tech.hermes.domain.notifications.InternalNotificationsBus
    zookeeperInternalNotificationBus(com.fasterxml.jackson.databind.ObjectMapper objectMapper, pl.allegro.tech.hermes.infrastructure.zookeeper.cache.ModelAwareZookeeperNotifyingCache modelNotifyingCache)
     
    pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths
    zookeeperPaths(ZookeeperClustersProperties zookeeperClustersProperties, pl.allegro.tech.hermes.infrastructure.dc.DatacenterNameProvider datacenterNameProvider)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CommonConfiguration

      public CommonConfiguration()
  • Method Details

    • dcNameProvider

      @Bean public pl.allegro.tech.hermes.infrastructure.dc.DatacenterNameProvider dcNameProvider(DatacenterNameProperties datacenterNameProperties)
    • subscriptionRepository

      @Bean public pl.allegro.tech.hermes.domain.subscription.SubscriptionRepository subscriptionRepository(org.apache.curator.framework.CuratorFramework zookeeper, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths paths, com.fasterxml.jackson.databind.ObjectMapper mapper, pl.allegro.tech.hermes.domain.topic.TopicRepository topicRepository)
    • oAuthProviderRepository

      @Bean public pl.allegro.tech.hermes.domain.oauth.OAuthProviderRepository oAuthProviderRepository(org.apache.curator.framework.CuratorFramework zookeeper, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths paths, com.fasterxml.jackson.databind.ObjectMapper mapper)
    • topicRepository

      @Bean public pl.allegro.tech.hermes.domain.topic.TopicRepository topicRepository(org.apache.curator.framework.CuratorFramework zookeeper, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths paths, com.fasterxml.jackson.databind.ObjectMapper mapper, pl.allegro.tech.hermes.domain.group.GroupRepository groupRepository)
    • groupRepository

      @Bean public pl.allegro.tech.hermes.domain.group.GroupRepository groupRepository(org.apache.curator.framework.CuratorFramework zookeeper, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths paths, com.fasterxml.jackson.databind.ObjectMapper mapper)
    • hermesCurator

      @Bean(destroyMethod="close") public org.apache.curator.framework.CuratorFramework hermesCurator(ZookeeperClustersProperties zookeeperClustersProperties, pl.allegro.tech.hermes.common.di.factories.CuratorClientFactory curatorClientFactory, pl.allegro.tech.hermes.infrastructure.dc.DatacenterNameProvider datacenterNameProvider)
    • curatorClientFactory

      @Bean public pl.allegro.tech.hermes.common.di.factories.CuratorClientFactory curatorClientFactory(ZookeeperClustersProperties zookeeperClustersProperties, pl.allegro.tech.hermes.infrastructure.dc.DatacenterNameProvider datacenterNameProvider)
    • zookeeperInternalNotificationBus

      @Bean public pl.allegro.tech.hermes.domain.notifications.InternalNotificationsBus zookeeperInternalNotificationBus(com.fasterxml.jackson.databind.ObjectMapper objectMapper, pl.allegro.tech.hermes.infrastructure.zookeeper.cache.ModelAwareZookeeperNotifyingCache modelNotifyingCache)
    • modelAwareZookeeperNotifyingCache

      @Bean(destroyMethod="stop") public pl.allegro.tech.hermes.infrastructure.zookeeper.cache.ModelAwareZookeeperNotifyingCache modelAwareZookeeperNotifyingCache(org.apache.curator.framework.CuratorFramework curator, ZookeeperClustersProperties zookeeperClustersProperties, pl.allegro.tech.hermes.infrastructure.dc.DatacenterNameProvider datacenterNameProvider)
    • undeliveredMessageLog

      @Bean public pl.allegro.tech.hermes.common.message.undelivered.UndeliveredMessageLog undeliveredMessageLog(org.apache.curator.framework.CuratorFramework zookeeper, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths paths, com.fasterxml.jackson.databind.ObjectMapper mapper, pl.allegro.tech.hermes.common.metric.MetricsFacade metricsFacade)
    • threadPoolMetrics

      @Bean public pl.allegro.tech.hermes.common.metric.executor.ThreadPoolMetrics threadPoolMetrics(pl.allegro.tech.hermes.common.metric.MetricsFacade metricsFacade)
    • instrumentedExecutorServiceFactory

      @Bean public pl.allegro.tech.hermes.common.metric.executor.InstrumentedExecutorServiceFactory instrumentedExecutorServiceFactory(pl.allegro.tech.hermes.common.metric.executor.ThreadPoolMetrics threadPoolMetrics)
    • zookeeperAdminCache

      @Bean public pl.allegro.tech.hermes.common.admin.zookeeper.ZookeeperAdminCache zookeeperAdminCache(pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths zookeeperPaths, org.apache.curator.framework.CuratorFramework client, com.fasterxml.jackson.databind.ObjectMapper objectMapper, Clock clock)
    • objectMapper

      @Bean public com.fasterxml.jackson.databind.ObjectMapper objectMapper(SchemaProperties schemaProperties)
    • messageContentWrapper

      @Bean public pl.allegro.tech.hermes.common.message.wrapper.CompositeMessageContentWrapper messageContentWrapper(com.fasterxml.jackson.databind.ObjectMapper mapper, Clock clock, pl.allegro.tech.hermes.schema.SchemaRepository schemaRepository, pl.allegro.tech.hermes.common.metric.MetricsFacade metricsFacade, SchemaProperties schemaProperties, ContentRootProperties contentRootProperties)
    • prodKafkaNamesMapper

      @Bean public pl.allegro.tech.hermes.common.kafka.KafkaNamesMapper prodKafkaNamesMapper(KafkaClustersProperties kafkaClustersProperties)
    • clock

      @Bean public Clock clock()
    • zookeeperPaths

      @Bean public pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths zookeeperPaths(ZookeeperClustersProperties zookeeperClustersProperties, pl.allegro.tech.hermes.infrastructure.dc.DatacenterNameProvider datacenterNameProvider)
    • workloadConstraintsRepository

      @Bean public pl.allegro.tech.hermes.domain.workload.constraints.WorkloadConstraintsRepository workloadConstraintsRepository(org.apache.curator.framework.CuratorFramework curator, com.fasterxml.jackson.databind.ObjectMapper mapper, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths paths)
    • hermesMetrics

      @Bean public pl.allegro.tech.hermes.common.metric.HermesMetrics hermesMetrics(com.codahale.metrics.MetricRegistry metricRegistry, pl.allegro.tech.hermes.metrics.PathsCompiler pathsCompiler)
    • metricsFacade

      @Bean public pl.allegro.tech.hermes.common.metric.MetricsFacade metricsFacade(io.micrometer.core.instrument.MeterRegistry meterRegistry, pl.allegro.tech.hermes.common.metric.HermesMetrics hermesMetrics)
    • metricRegistry

      @Bean public com.codahale.metrics.MetricRegistry metricRegistry(MetricsProperties metricsProperties, GraphiteProperties graphiteProperties, pl.allegro.tech.hermes.common.util.InstanceIdResolver instanceIdResolver, @Named("moduleName") String moduleName)
    • micrometerRegistry

      @Bean public io.micrometer.prometheus.PrometheusMeterRegistry micrometerRegistry(pl.allegro.tech.hermes.common.di.factories.MicrometerRegistryParameters micrometerRegistryParameters, io.micrometer.prometheus.PrometheusConfig prometheusConfig, pl.allegro.tech.hermes.common.metric.counter.CounterStorage counterStorage)
    • compositeMeterRegistry

      @Bean @Primary public io.micrometer.core.instrument.MeterRegistry compositeMeterRegistry(List<io.micrometer.core.instrument.MeterRegistry> registries)
    • moduleName

      @Bean @Named("moduleName") public String moduleName()
    • pathsCompiler

      @Bean public pl.allegro.tech.hermes.metrics.PathsCompiler pathsCompiler(pl.allegro.tech.hermes.common.util.InstanceIdResolver instanceIdResolver)
    • zookeeperCounterStorage

      @Bean public pl.allegro.tech.hermes.common.metric.counter.CounterStorage zookeeperCounterStorage(pl.allegro.tech.hermes.infrastructure.zookeeper.counter.SharedCounter sharedCounter, pl.allegro.tech.hermes.domain.subscription.SubscriptionRepository subscriptionRepository, pl.allegro.tech.hermes.metrics.PathsCompiler pathsCompiler, ZookeeperClustersProperties zookeeperClustersProperties, pl.allegro.tech.hermes.infrastructure.dc.DatacenterNameProvider datacenterNameProvider)
    • sharedCounter

      @Bean public pl.allegro.tech.hermes.infrastructure.zookeeper.counter.SharedCounter sharedCounter(org.apache.curator.framework.CuratorFramework zookeeper, ZookeeperClustersProperties zookeeperClustersProperties, MetricsProperties metricsProperties, pl.allegro.tech.hermes.infrastructure.dc.DatacenterNameProvider datacenterNameProvider)
    • instanceIdResolver

      @Bean public pl.allegro.tech.hermes.common.util.InstanceIdResolver instanceIdResolver()
    • subscriptionOffsetChangeIndicatorFactory

      @Bean public pl.allegro.tech.hermes.common.kafka.offset.SubscriptionOffsetChangeIndicator subscriptionOffsetChangeIndicatorFactory(org.apache.curator.framework.CuratorFramework zookeeper, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths paths, pl.allegro.tech.hermes.domain.subscription.SubscriptionRepository subscriptionRepository)
    • executorServiceFactory

      @Bean public pl.allegro.tech.hermes.common.concurrent.ExecutorServiceFactory executorServiceFactory()