Class MigrationPushStrategyZKAccessor

java.lang.Object
com.linkedin.venice.controller.migration.MigrationPushStrategyZKAccessor

public class MigrationPushStrategyZKAccessor extends Object
  • Field Details

  • Constructor Details

    • MigrationPushStrategyZKAccessor

      public MigrationPushStrategyZKAccessor(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapter)
  • Method Details

    • getAllPushStrategies

      public Map<String,String> getAllPushStrategies()
      The reason to return the push strategy for all the stores: 1. It is necessary for admin tool to retrieve push strategy for all the stores; 2. Right now, ControllerClient doesn't provide a good way to recognize "not-exist" status since the backend always throws an exception; 3. Combo plugin needs to know whether the push strategy exists or not to decide whether to use the default push strategy; It is definitely possible to support 'not-exist' case: such as updating ControllerClient to be aware of '404', but right now I choose to return the push strategy for all the stores, and let client decide.
    • setPushStrategy

      public void setPushStrategy(String voldemortStoreName, String pushStrategyStr)