Class HelixHybridStoreQuotaRepository

java.lang.Object
com.linkedin.venice.helix.HelixHybridStoreQuotaRepository
All Implemented Interfaces:
org.apache.helix.api.listeners.RoutingTableChangeListener

public class HelixHybridStoreQuotaRepository extends Object implements org.apache.helix.api.listeners.RoutingTableChangeListener
Extend RoutingTableChangeListener to leverage customized view data for hybrid store quota.
  • Constructor Details

    • HelixHybridStoreQuotaRepository

      public HelixHybridStoreQuotaRepository(SafeHelixManager manager)
  • Method Details

    • getHybridQuotaViolatedStores

      public List<String> getHybridQuotaViolatedStores()
      Get list of quota exceeded stores from local memory cache.
    • getHybridStoreQuotaStatus

      public HybridStoreQuotaStatus getHybridStoreQuotaStatus(@Nonnull String resourceName)
      Get hybrid store quota status from local memory cache for specific resource name.
      Parameters:
      resourceName -
      Returns:
    • refresh

      public void refresh()
    • clear

      public void clear()
    • onRoutingTableChange

      public void onRoutingTableChange(org.apache.helix.spectator.RoutingTableSnapshot routingTableSnapshot, Object context)
      Specified by:
      onRoutingTableChange in interface org.apache.helix.api.listeners.RoutingTableChangeListener