Class NameCache


  • public class NameCache
    extends java.lang.Object
    Maintains the mappings between addresses and logical names (moved out of UUID.cache into a separate class)
    Since:
    4.0
    Author:
    Bela Ban
    • Constructor Detail

      • NameCache

        public NameCache()
    • Method Detail

      • add

        public static void add​(Address uuid,
                               java.lang.String logical_name)
      • add

        public static void add​(java.util.Map<Address,​java.lang.String> map)
      • get

        public static java.lang.String get​(Address logical_addr)
      • getContents

        public static java.util.Map<Address,​java.lang.String> getContents()
        Returns a copy of the cache's contents
      • remove

        public static void remove​(Address addr)
      • removeAll

        public static void removeAll​(java.util.Collection<Address> mbrs)
      • retainAll

        public static void retainAll​(java.util.Collection<Address> logical_addrs)
      • printCache

        public static java.lang.String printCache()