Class RealTimeTopicSwitcher
java.lang.Object
com.linkedin.venice.ingestion.control.RealTimeTopicSwitcher
Class which implements the process of switching from a batch topic (e.g. version-topic or stream reprocessing topic)
to a real-time topic, including:
1. Ensuring the pre-conditions are met,
2. Determining the start timestamp to rewind to,
3. Writing the actual
TopicSwitch
control message.-
Constructor Summary
ConstructorDescriptionRealTimeTopicSwitcher
(TopicManager topicManager, VeniceWriterFactory veniceWriterFactory, VeniceProperties veniceProperties, PubSubTopicRepository pubSubTopicRepository) -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasViewConfigs
(Version nextStoreVersion, Version previousStoreVersion) void
switchToRealTimeTopic
(String realTimeTopicName, String topicNameWhereToSendTheTopicSwitch, Store store, String aggregateRealTimeSourceKafkaUrl, List<String> activeActiveRealTimeSourceKafkaURLs) void
transmitVersionSwapMessage
(Store store, int previousVersion, int nextVersion)
-
Constructor Details
-
RealTimeTopicSwitcher
public RealTimeTopicSwitcher(TopicManager topicManager, VeniceWriterFactory veniceWriterFactory, VeniceProperties veniceProperties, PubSubTopicRepository pubSubTopicRepository)
-
-
Method Details
-
transmitVersionSwapMessage
-
hasViewConfigs
-
switchToRealTimeTopic
-