Class GlobalCacheManager

java.lang.Object
org.harctoolbox.guicomponents.GlobalCacheManager

public final class GlobalCacheManager extends Object
This class runs a AmxBeaconListener for GlobalCache's in a thread. This is singleton class, since it is simply not sensible to run more than one instance on the host. There are functions for adding and removing GlobalCache units not adhering to the AMX Beacon protocol ("manual GlobalCaches"). PropertyChangeSupport is provided. Initial selections is to be handled by adding a manual GlobalCache. If later an automatic entry for the same IP appears, the manual entry will be automatically removed.
  • Field Details

  • Method Details

    • getInstance

      public static GlobalCacheManager getInstance()
      Returns:
      the instance
    • getType

      public String getType(int index)
    • getInetAddress

      public InetAddress getInetAddress(int index)
    • getIndex

      public int getIndex(InetAddress inetAddress)
    • addManualGlobalCache

      public boolean addManualGlobalCache(String ipName) throws IOException
      Throws:
      IOException
    • addManualGlobalCache

      public boolean addManualGlobalCache(InetAddress inetAddress)
    • removeManualGlobalCache

      public boolean removeManualGlobalCache(InetAddress inetAddress)
    • getManual

      public InetAddress[] getManual()
    • getAutomatic

      public InetAddress[] getAutomatic()
    • getAllNames

      public String[] getAllNames()
    • getAutomaticPrettyNames

      public String[] getAutomaticPrettyNames()
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener listener)
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener listener)