@Configuration
public class CommonConfiguration
extends java.lang.Object
| Constructor and Description |
|---|
CommonConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
java.time.Clock |
clock() |
pl.allegro.tech.hermes.common.di.factories.CuratorClientFactory |
curatorClientFactory(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory) |
pl.allegro.tech.hermes.common.message.wrapper.DeserializationMetrics |
deserializationMetrics(com.codahale.metrics.MetricRegistry metricRegistry) |
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(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory,
pl.allegro.tech.hermes.common.di.factories.CuratorClientFactory curatorClientFactory) |
pl.allegro.tech.hermes.common.metric.HermesMetrics |
hermesMetrics(com.codahale.metrics.MetricRegistry metricRegistry,
pl.allegro.tech.hermes.metrics.PathsCompiler pathCompiler) |
pl.allegro.tech.hermes.common.util.InstanceIdResolver |
instanceIdResolver() |
pl.allegro.tech.hermes.common.metric.executor.InstrumentedExecutorServiceFactory |
instrumentedExecutorServiceFactory(pl.allegro.tech.hermes.common.metric.HermesMetrics hermesMetrics) |
pl.allegro.tech.hermes.common.message.wrapper.MessageContentWrapper |
messageContentWrapper(pl.allegro.tech.hermes.common.config.ConfigFactory config,
com.fasterxml.jackson.databind.ObjectMapper mapper,
java.time.Clock clock,
pl.allegro.tech.hermes.schema.SchemaRepository schemaRepository,
pl.allegro.tech.hermes.common.message.wrapper.DeserializationMetrics deserializationMetrics,
pl.allegro.tech.hermes.common.config.ConfigFactory configFactory,
pl.allegro.tech.hermes.common.message.wrapper.SchemaOnlineChecksRateLimiter schemaOnlineChecksRateLimiter) |
com.codahale.metrics.MetricRegistry |
metricRegistry(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory,
pl.allegro.tech.hermes.common.metric.counter.CounterStorage counterStorage,
pl.allegro.tech.hermes.common.util.InstanceIdResolver instanceIdResolver,
java.lang.String moduleName) |
pl.allegro.tech.hermes.infrastructure.zookeeper.cache.ModelAwareZookeeperNotifyingCache |
modelAwareZookeeperNotifyingCache(org.apache.curator.framework.CuratorFramework curator,
pl.allegro.tech.hermes.common.config.ConfigFactory config) |
java.lang.String |
moduleName() |
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(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory) |
pl.allegro.tech.hermes.metrics.PathsCompiler |
pathsCompiler(pl.allegro.tech.hermes.common.util.InstanceIdResolver instanceIdResolver) |
pl.allegro.tech.hermes.common.config.ConfigFactory |
prodConfigFactory() |
pl.allegro.tech.hermes.common.kafka.KafkaNamesMapper |
prodKafkaNamesMapper(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory) |
pl.allegro.tech.hermes.common.message.wrapper.SchemaOnlineChecksRateLimiter |
schemaOnlineChecksWaitingRateLimiter(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory) |
pl.allegro.tech.hermes.infrastructure.zookeeper.counter.SharedCounter |
sharedCounter(org.apache.curator.framework.CuratorFramework zookeeper,
pl.allegro.tech.hermes.common.config.ConfigFactory config) |
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.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.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,
java.time.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,
pl.allegro.tech.hermes.common.config.ConfigFactory configFactory) |
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(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory) |
@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)
@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)
@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)
@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)
@Bean(destroyMethod="close")
public org.apache.curator.framework.CuratorFramework hermesCurator(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory,
pl.allegro.tech.hermes.common.di.factories.CuratorClientFactory curatorClientFactory)
@Bean public pl.allegro.tech.hermes.common.di.factories.CuratorClientFactory curatorClientFactory(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory)
@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)
@Bean(destroyMethod="stop")
public pl.allegro.tech.hermes.infrastructure.zookeeper.cache.ModelAwareZookeeperNotifyingCache modelAwareZookeeperNotifyingCache(org.apache.curator.framework.CuratorFramework curator,
pl.allegro.tech.hermes.common.config.ConfigFactory config)
@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)
@Bean public pl.allegro.tech.hermes.common.metric.executor.InstrumentedExecutorServiceFactory instrumentedExecutorServiceFactory(pl.allegro.tech.hermes.common.metric.HermesMetrics hermesMetrics)
@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,
java.time.Clock clock)
@Bean public com.fasterxml.jackson.databind.ObjectMapper objectMapper(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory)
@Bean
public pl.allegro.tech.hermes.common.message.wrapper.MessageContentWrapper messageContentWrapper(pl.allegro.tech.hermes.common.config.ConfigFactory config,
com.fasterxml.jackson.databind.ObjectMapper mapper,
java.time.Clock clock,
pl.allegro.tech.hermes.schema.SchemaRepository schemaRepository,
pl.allegro.tech.hermes.common.message.wrapper.DeserializationMetrics deserializationMetrics,
pl.allegro.tech.hermes.common.config.ConfigFactory configFactory,
pl.allegro.tech.hermes.common.message.wrapper.SchemaOnlineChecksRateLimiter schemaOnlineChecksRateLimiter)
@Bean public pl.allegro.tech.hermes.common.message.wrapper.DeserializationMetrics deserializationMetrics(com.codahale.metrics.MetricRegistry metricRegistry)
@Bean public pl.allegro.tech.hermes.common.message.wrapper.SchemaOnlineChecksRateLimiter schemaOnlineChecksWaitingRateLimiter(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory)
@Bean public pl.allegro.tech.hermes.common.kafka.KafkaNamesMapper prodKafkaNamesMapper(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory)
@Bean public pl.allegro.tech.hermes.common.config.ConfigFactory prodConfigFactory()
@Bean public java.time.Clock clock()
@Bean public pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths zookeeperPaths(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory)
@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)
@Bean
public pl.allegro.tech.hermes.common.metric.HermesMetrics hermesMetrics(com.codahale.metrics.MetricRegistry metricRegistry,
pl.allegro.tech.hermes.metrics.PathsCompiler pathCompiler)
@Bean
public com.codahale.metrics.MetricRegistry metricRegistry(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory,
pl.allegro.tech.hermes.common.metric.counter.CounterStorage counterStorage,
pl.allegro.tech.hermes.common.util.InstanceIdResolver instanceIdResolver,
@Named(value="moduleName")
java.lang.String moduleName)
@Bean @Named(value="moduleName") public java.lang.String moduleName()
@Bean public pl.allegro.tech.hermes.metrics.PathsCompiler pathsCompiler(pl.allegro.tech.hermes.common.util.InstanceIdResolver instanceIdResolver)
@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,
pl.allegro.tech.hermes.common.config.ConfigFactory configFactory)
@Bean
public pl.allegro.tech.hermes.infrastructure.zookeeper.counter.SharedCounter sharedCounter(org.apache.curator.framework.CuratorFramework zookeeper,
pl.allegro.tech.hermes.common.config.ConfigFactory config)
@Bean public pl.allegro.tech.hermes.common.util.InstanceIdResolver instanceIdResolver()
@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)