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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
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.void
onRoutingTableChange
(org.apache.helix.spectator.RoutingTableSnapshot routingTableSnapshot, Object context) void
refresh()
-
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:
onRoutingTableChange
in interfaceorg.apache.helix.api.listeners.RoutingTableChangeListener
-