Class RealTimeTopicSwitcher
- java.lang.Object
-
- com.linkedin.venice.ingestion.control.RealTimeTopicSwitcher
-
public class RealTimeTopicSwitcher extends java.lang.ObjectClass 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 actualTopicSwitchcontrol message.
-
-
Constructor Summary
Constructors Constructor Description RealTimeTopicSwitcher(TopicManager topicManager, VeniceWriterFactory veniceWriterFactory, VeniceProperties veniceProperties, PubSubTopicRepository pubSubTopicRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasViewConfigs(Version nextStoreVersion, Version previousStoreVersion)voidswitchToRealTimeTopic(java.lang.String realTimeTopicName, java.lang.String topicNameWhereToSendTheTopicSwitch, Store store, java.lang.String aggregateRealTimeSourceKafkaUrl, java.util.List<java.lang.String> activeActiveRealTimeSourceKafkaURLs)voidtransmitVersionSwapMessage(Store store, int previousVersion, int nextVersion)
-
-
-
Constructor Detail
-
RealTimeTopicSwitcher
public RealTimeTopicSwitcher(TopicManager topicManager, VeniceWriterFactory veniceWriterFactory, VeniceProperties veniceProperties, PubSubTopicRepository pubSubTopicRepository)
-
-
Method Detail
-
transmitVersionSwapMessage
public void transmitVersionSwapMessage(Store store, int previousVersion, int nextVersion)
-
hasViewConfigs
public boolean hasViewConfigs(Version nextStoreVersion, Version previousStoreVersion)
-
switchToRealTimeTopic
public void switchToRealTimeTopic(java.lang.String realTimeTopicName, java.lang.String topicNameWhereToSendTheTopicSwitch, Store store, java.lang.String aggregateRealTimeSourceKafkaUrl, java.util.List<java.lang.String> activeActiveRealTimeSourceKafkaURLs)
-
-