Package com.linkedin.venice.helix
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Get list of quota exceeded stores from local memory cache.getHybridStoreQuotaStatus(String resourceName) Get hybrid store quota status from local memory cache for specific resource name.voidonRoutingTableChange(org.apache.helix.spectator.RoutingTableSnapshot routingTableSnapshot, Object context) voidrefresh()
-
Constructor Details
-
HelixHybridStoreQuotaRepository
-
-
Method Details
-
getHybridQuotaViolatedStores
Get list of quota exceeded stores from local memory cache. -
getHybridStoreQuotaStatus
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:
onRoutingTableChangein interfaceorg.apache.helix.api.listeners.RoutingTableChangeListener
-