Package org.harctoolbox.guicomponents
Class GlobalCacheManager
java.lang.Object
org.harctoolbox.guicomponents.GlobalCacheManager
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addManualGlobalCache
(String ipName) boolean
addManualGlobalCache
(InetAddress inetAddress) void
String[]
String[]
int
getIndex
(InetAddress inetAddress) getInetAddress
(int index) static GlobalCacheManager
getType
(int index) boolean
removeManualGlobalCache
(InetAddress inetAddress) void
-
Field Details
-
PROP_GCMANAGER_NAME
- See Also:
-
-
Method Details
-
getInstance
- Returns:
- the instance
-
getType
-
getInetAddress
-
getIndex
-
addManualGlobalCache
- Throws:
IOException
-
addManualGlobalCache
-
removeManualGlobalCache
-
getManual
-
getAutomatic
-
getAllNames
-
getAutomaticPrettyNames
-
addPropertyChangeListener
-
removePropertyChangeListener
-