Class SupervisorConfiguration


  • @Configuration
    public class SupervisorConfiguration
    extends java.lang.Object
    • Constructor Detail

      • SupervisorConfiguration

        public SupervisorConfiguration()
    • 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)
      • consumersExecutorService

        @Bean
        public ConsumersExecutorService consumersExecutorService​(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory,
                                                                 pl.allegro.tech.hermes.common.metric.HermesMetrics hermesMetrics)
      • 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)