Package net.handle.hdllib
Class FilesystemConfiguration
java.lang.Object
net.handle.hdllib.Configuration
net.handle.hdllib.FilesystemConfiguration
-
Field Summary
FieldsFields inherited from class net.handle.hdllib.Configuration
RM_GLOBAL, RM_WITH_CACHE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureResolver
(HandleResolver resolver) static void
configureResolverUsingKeys
(HandleResolver resolver, StreamTable configTable) SiteInfo[]
static File
SiteInfo[]
Gets the mapping of addresses to local addressesSiteInfo[]
getLocalSites
(String na) int
boolean
mapLocalAddress
(InetAddress addr) If the given address appears in the local address map return the address to which it is mapped.void
persist()
save the default global values in the users' config directoryvoid
Saves the local address map to the appropriate configuration filevoid
setAutoUpdateRootInfo
(boolean enabled) void
setBootstrapHandles
(BootstrapHandles bootstrapHandles) void
setCacheSites
(SiteInfo[] cacheSites) void
setConfigDir
(File newConfigDir) void
setGlobalSites
(SiteInfo[] globalSites) void
setGlobalValues
(HandleValue[] globalValues) Deprecated.void
setGlobalValuesFile
(File newGlobalValuesFile) void
setLocalAddressMap
(Map<String, String> localAddrMap) Sets a map that converts IP addresses to alternate addresses.void
setLocalSites
(String na, SiteInfo[] sites) void
setResolutionMethod
(int resolutionMethod) void
setRootKeys
(List<PublicKey> rootKeys) Methods inherited from class net.handle.hdllib.Configuration
addRootInfoListener, checkRootInfoUpToDate, defaultConfiguration, getLocalSites, isBootstrapHandlesOld, notifyRootInfoOutdated, removeRootInfoListener, setLocalSites, startAutoUpdate
-
Field Details
-
AUTO_UPDATE_ROOT_INFO
- See Also:
-
PREFERRED_GLOBAL_SERVICE_HANDLE
- See Also:
-
SITE_FILTER_KEYWORDS_ATT_NAME
- See Also:
-
-
Constructor Details
-
FilesystemConfiguration
-
-
Method Details
-
getDefaultConfigDir
-
configureResolver
- Overrides:
configureResolver
in classConfiguration
-
configureResolverUsingKeys
-
setLocalSites
- Overrides:
setLocalSites
in classConfiguration
-
setLocalAddressMap
Sets a map that converts IP addresses to alternate addresses. This is used to map IP addresses that are viewable outside of firewalls to IP addresses that are accessibile from inside a firewall. This is needed for certain NAT firewall/routers. The localAddrMap parameter should map String representations.- Overrides:
setLocalAddressMap
in classConfiguration
-
saveLocalAddressMap
Saves the local address map to the appropriate configuration file- Overrides:
saveLocalAddressMap
in classConfiguration
- Throws:
IOException
-
getLocalAddressMap
Gets the mapping of addresses to local addresses- Overrides:
getLocalAddressMap
in classConfiguration
-
mapLocalAddress
If the given address appears in the local address map return the address to which it is mapped. Otherwise, return the given parameter.- Overrides:
mapLocalAddress
in classConfiguration
-
getLocalSites
- Overrides:
getLocalSites
in classConfiguration
-
setGlobalValues
Deprecated.- Specified by:
setGlobalValues
in classConfiguration
-
setGlobalValuesFile
-
setBootstrapHandles
- Specified by:
setBootstrapHandles
in classConfiguration
-
persist
public void persist()save the default global values in the users' config directory- Specified by:
persist
in classConfiguration
-
setConfigDir
-
getConfigDir
-
getGlobalValues
- Specified by:
getGlobalValues
in classConfiguration
-
getGlobalNamespace
- Specified by:
getGlobalNamespace
in classConfiguration
-
setGlobalSites
- Specified by:
setGlobalSites
in classConfiguration
-
getGlobalSites
- Specified by:
getGlobalSites
in classConfiguration
-
setCacheSites
- Overrides:
setCacheSites
in classConfiguration
-
getCacheSites
- Overrides:
getCacheSites
in classConfiguration
-
getResolutionMethod
public int getResolutionMethod()- Overrides:
getResolutionMethod
in classConfiguration
-
setResolutionMethod
public void setResolutionMethod(int resolutionMethod) - Overrides:
setResolutionMethod
in classConfiguration
-
isAutoUpdateRootInfo
public boolean isAutoUpdateRootInfo()- Specified by:
isAutoUpdateRootInfo
in classConfiguration
-
setAutoUpdateRootInfo
public void setAutoUpdateRootInfo(boolean enabled) - Specified by:
setAutoUpdateRootInfo
in classConfiguration
-
getPreferredGlobalServiceHandle
- Overrides:
getPreferredGlobalServiceHandle
in classConfiguration
-
getRootKeys
- Specified by:
getRootKeys
in classConfiguration
-
setRootKeys
- Specified by:
setRootKeys
in classConfiguration
-
getBootstrapHandles
- Specified by:
getBootstrapHandles
in classConfiguration
-