Package com.linkedin.venice.utils
Class RegionUtils
java.lang.Object
com.linkedin.venice.utils.RegionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcomposeRegionList(Set<String> regions) A helper function to compose a region list withREGION_FILTER_LIST_SEPARATOR.static StringgetLocalRegionName(VeniceProperties props, boolean isParentRegion) static StringgetRegionSpecificMetricPrefix(String localRegionName, String regionName) static booleanisRegionPartOfRegionsFilterList(String region, String regionFilter) A helper function to check if a region is part of the regions filter list.parseRegionRolloutOrderList(String rolloutOrderList) A helper function to split a region list withREGION_FILTER_LIST_SEPARATORparseRegionsFilterList(String regionsFilterList) A helper function to split a region list withREGION_FILTER_LIST_SEPARATOR
-
Constructor Details
-
RegionUtils
public RegionUtils()
-
-
Method Details
-
getLocalRegionName
-
getRegionSpecificMetricPrefix
-
parseRegionsFilterList
A helper function to split a region list withREGION_FILTER_LIST_SEPARATOR -
parseRegionRolloutOrderList
A helper function to split a region list withREGION_FILTER_LIST_SEPARATOR -
isRegionPartOfRegionsFilterList
A helper function to check if a region is part of the regions filter list. -
composeRegionList
A helper function to compose a region list withREGION_FILTER_LIST_SEPARATOR. This is the reverse ofparseRegionsFilterList(String).- Parameters:
regions- , a set of regions- Returns:
- a string of regions separated by
REGION_FILTER_LIST_SEPARATOR
-