@Configuration
public class SupervisorConfiguration
extends java.lang.Object
| Constructor and Description |
|---|
SupervisorConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
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 |
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) |
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) |
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 |
consumersExecutorService(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory,
pl.allegro.tech.hermes.common.metric.HermesMetrics hermesMetrics) |
ConsumersRuntimeMonitor |
consumersRuntimeMonitor(ConsumersSupervisor consumerSupervisor,
SupervisorController workloadSupervisor,
pl.allegro.tech.hermes.common.metric.HermesMetrics hermesMetrics,
SubscriptionsCache subscriptionsCache,
pl.allegro.tech.hermes.common.config.ConfigFactory configFactory) |
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) |
Retransmitter |
retransmitter(pl.allegro.tech.hermes.common.kafka.offset.SubscriptionOffsetChangeIndicator subscriptionOffsetChangeIndicator,
pl.allegro.tech.hermes.common.config.ConfigFactory configs) |
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) |
@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)
@Bean public Retransmitter retransmitter(pl.allegro.tech.hermes.common.kafka.offset.SubscriptionOffsetChangeIndicator subscriptionOffsetChangeIndicator, pl.allegro.tech.hermes.common.config.ConfigFactory configs)
@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)
@Bean public ConsumersExecutorService consumersExecutorService(pl.allegro.tech.hermes.common.config.ConfigFactory configFactory, pl.allegro.tech.hermes.common.metric.HermesMetrics hermesMetrics)
@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)
@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)
@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)
@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)
@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)