Class TopicPlacementContext
java.lang.Object
com.linkedin.venice.controller.placement.TopicPlacementContext
Store, topic and destination details used to select a backend.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTopicPlacementContext(String clusterName, String storeName, String topicName, String destinationAddress, boolean legacyAlternative) Compatibility constructor: without owner metadata, the category is UNKNOWN.TopicPlacementContext(String clusterName, String storeName, String topicName, String destinationAddress, boolean legacyAlternative, Store ownerStore) Snapshots the owning user store's metadata; never retains the mutable store. -
Method Summary
Modifier and TypeMethodDescriptionThe target TopicManager's address, which may differ from the controller's region.The owning user-store name, including when the topic belongs to its push-status store.booleanStatic configuration's choice for this topic, for comparison rather than an active-placement veto.
-
Constructor Details
-
TopicPlacementContext
public TopicPlacementContext(String clusterName, String storeName, String topicName, String destinationAddress, boolean legacyAlternative) Compatibility constructor: without owner metadata, the category is UNKNOWN. -
TopicPlacementContext
public TopicPlacementContext(String clusterName, String storeName, String topicName, String destinationAddress, boolean legacyAlternative, Store ownerStore) Snapshots the owning user store's metadata; never retains the mutable store.
-
-
Method Details
-
getMigrationCategory
-
getClusterName
-
getStoreName
The owning user-store name, including when the topic belongs to its push-status store. -
getTopicName
-
getDestinationAddress
The target TopicManager's address, which may differ from the controller's region. -
isLegacyAlternative
public boolean isLegacyAlternative()Static configuration's choice for this topic, for comparison rather than an active-placement veto.
-