Class SupervisorConfiguration
- java.lang.Object
-
- pl.allegro.tech.hermes.consumers.config.SupervisorConfiguration
-
@Configuration public class SupervisorConfiguration extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SupervisorConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterAssignmentCacheclusterAssignmentCache(org.apache.curator.framework.CuratorFramework curator, pl.allegro.tech.hermes.common.config.ConfigFactory configFactory, ConsumerAssignmentCache consumerAssignmentCache, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths zookeeperPaths, SubscriptionIds subscriptionIds, ConsumerNodesRegistry consumerNodesRegistry)ConsumerAssignmentCacheconsumerAssignmentCache(org.apache.curator.framework.CuratorFramework curator, pl.allegro.tech.hermes.common.config.ConfigFactory configFactory, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths zookeeperPaths, SubscriptionsCache subscriptionsCache, SubscriptionIds subscriptionIds)ConsumerAssignmentRegistryconsumerAssignmentRegistry(org.apache.curator.framework.CuratorFramework curator, pl.allegro.tech.hermes.common.config.ConfigFactory configFactory, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths zookeeperPaths, ConsumerAssignmentCache consumerAssignmentCache, SubscriptionIds subscriptionIds)ConsumerFactoryconsumerFactory(ReceiverFactory messageReceiverFactory, pl.allegro.tech.hermes.common.metric.HermesMetrics hermesMetrics, pl.allegro.tech.hermes.common.config.ConfigFactory configFactory, ConsumerRateLimitSupervisor consumerRateLimitSupervisor, OutputRateCalculatorFactory outputRateCalculatorFactory, pl.allegro.tech.hermes.tracker.consumers.Trackers trackers, OffsetQueue offsetQueue, ConsumerMessageSenderFactory consumerMessageSenderFactory, pl.allegro.tech.hermes.domain.topic.TopicRepository topicRepository, MessageConverterResolver messageConverterResolver, MessageBatchFactory byteBufferMessageBatchFactory, pl.allegro.tech.hermes.common.message.wrapper.MessageContentWrapper messageContentWrapper, MessageBatchSenderFactory batchSenderFactory, ConsumerAuthorizationHandler consumerAuthorizationHandler, java.time.Clock clock)ConsumersExecutorServiceconsumersExecutorService(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory, pl.allegro.tech.hermes.common.metric.HermesMetrics hermesMetrics)ConsumersRuntimeMonitorconsumersRuntimeMonitor(ConsumersSupervisor consumerSupervisor, SupervisorController workloadSupervisor, pl.allegro.tech.hermes.common.metric.HermesMetrics hermesMetrics, SubscriptionsCache subscriptionsCache, pl.allegro.tech.hermes.common.config.ConfigFactory configFactory)ConsumersSupervisornonblockingConsumersSupervisor(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory, ConsumersExecutorService executor, ConsumerFactory consumerFactory, OffsetQueue offsetQueue, ConsumerPartitionAssignmentState consumerPartitionAssignmentState, Retransmitter retransmitter, UndeliveredMessageLogPersister undeliveredMessageLogPersister, pl.allegro.tech.hermes.domain.subscription.SubscriptionRepository subscriptionRepository, pl.allegro.tech.hermes.common.metric.HermesMetrics metrics, ConsumerMonitor monitor, java.time.Clock clock)Retransmitterretransmitter(pl.allegro.tech.hermes.common.kafka.offset.SubscriptionOffsetChangeIndicator subscriptionOffsetChangeIndicator, pl.allegro.tech.hermes.common.config.ConfigFactory configs)SupervisorControllersupervisorController(pl.allegro.tech.hermes.domain.notifications.InternalNotificationsBus notificationsBus, ConsumerNodesRegistry consumerNodesRegistry, ConsumerAssignmentRegistry assignmentRegistry, ConsumerAssignmentCache consumerAssignmentCache, ClusterAssignmentCache clusterAssignmentCache, SubscriptionsCache subscriptionsCache, ConsumersSupervisor supervisor, pl.allegro.tech.hermes.common.admin.zookeeper.ZookeeperAdminCache adminCache, pl.allegro.tech.hermes.common.metric.HermesMetrics metrics, pl.allegro.tech.hermes.common.config.ConfigFactory configs, pl.allegro.tech.hermes.domain.workload.constraints.WorkloadConstraintsRepository workloadConstraintsRepository)
-
-
-
Method Detail
-
supervisorController
@Bean(initMethod="start", destroyMethod="shutdown") public SupervisorController supervisorController(pl.allegro.tech.hermes.domain.notifications.InternalNotificationsBus notificationsBus, ConsumerNodesRegistry consumerNodesRegistry, ConsumerAssignmentRegistry assignmentRegistry, ConsumerAssignmentCache consumerAssignmentCache, ClusterAssignmentCache clusterAssignmentCache, SubscriptionsCache subscriptionsCache, ConsumersSupervisor supervisor, pl.allegro.tech.hermes.common.admin.zookeeper.ZookeeperAdminCache adminCache, pl.allegro.tech.hermes.common.metric.HermesMetrics metrics, pl.allegro.tech.hermes.common.config.ConfigFactory configs, pl.allegro.tech.hermes.domain.workload.constraints.WorkloadConstraintsRepository workloadConstraintsRepository)
-
retransmitter
@Bean public Retransmitter retransmitter(pl.allegro.tech.hermes.common.kafka.offset.SubscriptionOffsetChangeIndicator subscriptionOffsetChangeIndicator, pl.allegro.tech.hermes.common.config.ConfigFactory configs)
-
consumerFactory
@Bean public ConsumerFactory consumerFactory(ReceiverFactory messageReceiverFactory, pl.allegro.tech.hermes.common.metric.HermesMetrics hermesMetrics, pl.allegro.tech.hermes.common.config.ConfigFactory configFactory, ConsumerRateLimitSupervisor consumerRateLimitSupervisor, OutputRateCalculatorFactory outputRateCalculatorFactory, pl.allegro.tech.hermes.tracker.consumers.Trackers trackers, OffsetQueue offsetQueue, ConsumerMessageSenderFactory consumerMessageSenderFactory, pl.allegro.tech.hermes.domain.topic.TopicRepository topicRepository, MessageConverterResolver messageConverterResolver, MessageBatchFactory byteBufferMessageBatchFactory, pl.allegro.tech.hermes.common.message.wrapper.MessageContentWrapper messageContentWrapper, MessageBatchSenderFactory batchSenderFactory, ConsumerAuthorizationHandler consumerAuthorizationHandler, java.time.Clock clock)
-
consumersExecutorService
@Bean public ConsumersExecutorService consumersExecutorService(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory, pl.allegro.tech.hermes.common.metric.HermesMetrics hermesMetrics)
-
nonblockingConsumersSupervisor
@Bean public ConsumersSupervisor nonblockingConsumersSupervisor(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory, ConsumersExecutorService executor, ConsumerFactory consumerFactory, OffsetQueue offsetQueue, ConsumerPartitionAssignmentState consumerPartitionAssignmentState, Retransmitter retransmitter, UndeliveredMessageLogPersister undeliveredMessageLogPersister, pl.allegro.tech.hermes.domain.subscription.SubscriptionRepository subscriptionRepository, pl.allegro.tech.hermes.common.metric.HermesMetrics metrics, ConsumerMonitor monitor, java.time.Clock clock)
-
consumersRuntimeMonitor
@Bean(initMethod="start", destroyMethod="shutdown") public ConsumersRuntimeMonitor consumersRuntimeMonitor(ConsumersSupervisor consumerSupervisor, SupervisorController workloadSupervisor, pl.allegro.tech.hermes.common.metric.HermesMetrics hermesMetrics, SubscriptionsCache subscriptionsCache, pl.allegro.tech.hermes.common.config.ConfigFactory configFactory)
-
consumerAssignmentRegistry
@Bean public ConsumerAssignmentRegistry consumerAssignmentRegistry(org.apache.curator.framework.CuratorFramework curator, pl.allegro.tech.hermes.common.config.ConfigFactory configFactory, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths zookeeperPaths, ConsumerAssignmentCache consumerAssignmentCache, SubscriptionIds subscriptionIds)
-
clusterAssignmentCache
@Bean public ClusterAssignmentCache clusterAssignmentCache(org.apache.curator.framework.CuratorFramework curator, pl.allegro.tech.hermes.common.config.ConfigFactory configFactory, ConsumerAssignmentCache consumerAssignmentCache, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths zookeeperPaths, SubscriptionIds subscriptionIds, ConsumerNodesRegistry consumerNodesRegistry)
-
consumerAssignmentCache
@Bean(initMethod="start", destroyMethod="stop") public ConsumerAssignmentCache consumerAssignmentCache(org.apache.curator.framework.CuratorFramework curator, pl.allegro.tech.hermes.common.config.ConfigFactory configFactory, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths zookeeperPaths, SubscriptionsCache subscriptionsCache, SubscriptionIds subscriptionIds)
-
-