Class HelixHybridStoreQuotaRepository

  • All Implemented Interfaces:
    org.apache.helix.api.listeners.RoutingTableChangeListener

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

      • HelixHybridStoreQuotaRepository

        public HelixHybridStoreQuotaRepository​(SafeHelixManager manager)
    • Method Detail

      • getHybridQuotaViolatedStores

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

        public HybridStoreQuotaStatus getHybridStoreQuotaStatus​(@Nonnull
                                                                java.lang.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,
                                         java.lang.Object context)
        Specified by:
        onRoutingTableChange in interface org.apache.helix.api.listeners.RoutingTableChangeListener