Class RegionUtils


  • public class RegionUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      RegionUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String composeRegionList​(java.util.Set<java.lang.String> regions)
      A helper function to compose a region list with REGION_FILTER_LIST_SEPARATOR.
      static java.lang.String getLocalRegionName​(VeniceProperties props, boolean isParentRegion)  
      static java.lang.String getRegionSpecificMetricPrefix​(java.lang.String localRegionName, java.lang.String regionName)  
      static java.util.Set<java.lang.String> parseRegionsFilterList​(java.lang.String regionsFilterList)
      A helper function to split a region list with REGION_FILTER_LIST_SEPARATOR
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RegionUtils

        public RegionUtils()
    • Method Detail

      • getLocalRegionName

        public static java.lang.String getLocalRegionName​(VeniceProperties props,
                                                          boolean isParentRegion)
      • getRegionSpecificMetricPrefix

        public static java.lang.String getRegionSpecificMetricPrefix​(java.lang.String localRegionName,
                                                                     java.lang.String regionName)
      • parseRegionsFilterList

        public static java.util.Set<java.lang.String> parseRegionsFilterList​(java.lang.String regionsFilterList)
        A helper function to split a region list with REGION_FILTER_LIST_SEPARATOR
      • composeRegionList

        public static java.lang.String composeRegionList​(java.util.Set<java.lang.String> regions)
        A helper function to compose a region list with REGION_FILTER_LIST_SEPARATOR. This is the reverse of parseRegionsFilterList(String).
        Parameters:
        regions - , a set of regions
        Returns:
        a string of regions separated by REGION_FILTER_LIST_SEPARATOR