Class MultiDCAwareService
java.lang.Object
pl.allegro.tech.hermes.management.infrastructure.kafka.MultiDCAwareService
-
Constructor Summary
ConstructorsConstructorDescriptionMultiDCAwareService(List<BrokersClusterService> clusters, Clock clock, Duration intervalBetweenCheckingIfOffsetsMoved, Duration offsetsMovedTimeout, MultiDatacenterRepositoryCommandExecutor multiDcExecutor) -
Method Summary
Modifier and TypeMethodDescriptionbooleanallSubscriptionsHaveConsumersAssigned(pl.allegro.tech.hermes.api.Topic topic, List<pl.allegro.tech.hermes.api.Subscription> subscriptions) booleanareOffsetsAvailableOnAllKafkaTopics(pl.allegro.tech.hermes.api.Topic topic) voidcreateConsumerGroups(pl.allegro.tech.hermes.api.Topic topic, pl.allegro.tech.hermes.api.Subscription subscription) List<pl.allegro.tech.hermes.api.ConsumerGroup> describeConsumerGroups(pl.allegro.tech.hermes.api.Topic topic, String subscriptionName) voidmanageTopic(Consumer<BrokerTopicManagement> manageFunction) voidmoveOffsetsToTheEnd(pl.allegro.tech.hermes.api.Topic topic, pl.allegro.tech.hermes.api.SubscriptionName subscription) readMessageFromPrimary(String clusterName, pl.allegro.tech.hermes.api.Topic topic, Integer partition, Long offset) voidremoveTopicByName(String topicName) retransmit(pl.allegro.tech.hermes.api.Topic topic, String subscriptionName, Long timestamp, boolean dryRun, RequestUser requester) booleantopicExists(pl.allegro.tech.hermes.api.Topic topic)
-
Constructor Details
-
MultiDCAwareService
public MultiDCAwareService(List<BrokersClusterService> clusters, Clock clock, Duration intervalBetweenCheckingIfOffsetsMoved, Duration offsetsMovedTimeout, MultiDatacenterRepositoryCommandExecutor multiDcExecutor)
-
-
Method Details
-
manageTopic
-
readMessageFromPrimary
-
retransmit
public MultiDCOffsetChangeSummary retransmit(pl.allegro.tech.hermes.api.Topic topic, String subscriptionName, Long timestamp, boolean dryRun, RequestUser requester) -
areOffsetsAvailableOnAllKafkaTopics
public boolean areOffsetsAvailableOnAllKafkaTopics(pl.allegro.tech.hermes.api.Topic topic) -
topicExists
public boolean topicExists(pl.allegro.tech.hermes.api.Topic topic) -
listTopicFromAllDC
-
removeTopicByName
-
createConsumerGroups
public void createConsumerGroups(pl.allegro.tech.hermes.api.Topic topic, pl.allegro.tech.hermes.api.Subscription subscription) -
allSubscriptionsHaveConsumersAssigned
public boolean allSubscriptionsHaveConsumersAssigned(pl.allegro.tech.hermes.api.Topic topic, List<pl.allegro.tech.hermes.api.Subscription> subscriptions) -
describeConsumerGroups
-
moveOffsetsToTheEnd
public void moveOffsetsToTheEnd(pl.allegro.tech.hermes.api.Topic topic, pl.allegro.tech.hermes.api.SubscriptionName subscription)
-