Class TopicPlacementContext

java.lang.Object
com.linkedin.venice.controller.placement.TopicPlacementContext

public final class TopicPlacementContext extends Object
Store, topic and destination details used to select a backend.
  • 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

      public TopicPlacementContext.MigrationCategory getMigrationCategory()
    • getClusterName

      public String getClusterName()
    • getStoreName

      public String getStoreName()
      The owning user-store name, including when the topic belongs to its push-status store.
    • getTopicName

      public String getTopicName()
    • getDestinationAddress

      public String 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.