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 java.lang.Object implements org.apache.helix.api.listeners.RoutingTableChangeListener
Extend RoutingTableChangeListener to leverage customized view data for hybrid store quota.
-
-
Constructor Summary
Constructors Constructor Description HelixHybridStoreQuotaRepository(SafeHelixManager manager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
java.util.List<java.lang.String>
getHybridQuotaViolatedStores()
Get list of quota exceeded stores from local memory cache.HybridStoreQuotaStatus
getHybridStoreQuotaStatus(java.lang.String resourceName)
Get hybrid store quota status from local memory cache for specific resource name.void
onRoutingTableChange(org.apache.helix.spectator.RoutingTableSnapshot routingTableSnapshot, java.lang.Object context)
void
refresh()
-
-
-
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 interfaceorg.apache.helix.api.listeners.RoutingTableChangeListener
-
-