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 TypeMethodDescriptionvoidconfigureResolver(HandleResolver resolver) static voidconfigureResolverUsingKeys(HandleResolver resolver, StreamTable configTable) SiteInfo[]static FileSiteInfo[]Gets the mapping of addresses to local addressesSiteInfo[]getLocalSites(String na) intbooleanmapLocalAddress(InetAddress addr) If the given address appears in the local address map return the address to which it is mapped.voidpersist()save the default global values in the users' config directoryvoidSaves the local address map to the appropriate configuration filevoidsetAutoUpdateRootInfo(boolean enabled) voidsetBootstrapHandles(BootstrapHandles bootstrapHandles) voidsetCacheSites(SiteInfo[] cacheSites) voidsetConfigDir(File newConfigDir) voidsetGlobalSites(SiteInfo[] globalSites) voidsetGlobalValues(HandleValue[] globalValues) Deprecated.voidsetGlobalValuesFile(File newGlobalValuesFile) voidsetLocalAddressMap(Map<String, String> localAddrMap) Sets a map that converts IP addresses to alternate addresses.voidsetLocalSites(String na, SiteInfo[] sites) voidsetResolutionMethod(int resolutionMethod) voidsetRootKeys(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:
configureResolverin classConfiguration
-
configureResolverUsingKeys
-
setLocalSites
- Overrides:
setLocalSitesin 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:
setLocalAddressMapin classConfiguration
-
saveLocalAddressMap
Saves the local address map to the appropriate configuration file- Overrides:
saveLocalAddressMapin classConfiguration- Throws:
IOException
-
getLocalAddressMap
Gets the mapping of addresses to local addresses- Overrides:
getLocalAddressMapin 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:
mapLocalAddressin classConfiguration
-
getLocalSites
- Overrides:
getLocalSitesin classConfiguration
-
setGlobalValues
Deprecated.- Specified by:
setGlobalValuesin classConfiguration
-
setGlobalValuesFile
-
setBootstrapHandles
- Specified by:
setBootstrapHandlesin classConfiguration
-
persist
public void persist()save the default global values in the users' config directory- Specified by:
persistin classConfiguration
-
setConfigDir
-
getConfigDir
-
getGlobalValues
- Specified by:
getGlobalValuesin classConfiguration
-
getGlobalNamespace
- Specified by:
getGlobalNamespacein classConfiguration
-
setGlobalSites
- Specified by:
setGlobalSitesin classConfiguration
-
getGlobalSites
- Specified by:
getGlobalSitesin classConfiguration
-
setCacheSites
- Overrides:
setCacheSitesin classConfiguration
-
getCacheSites
- Overrides:
getCacheSitesin classConfiguration
-
getResolutionMethod
public int getResolutionMethod()- Overrides:
getResolutionMethodin classConfiguration
-
setResolutionMethod
public void setResolutionMethod(int resolutionMethod) - Overrides:
setResolutionMethodin classConfiguration
-
isAutoUpdateRootInfo
public boolean isAutoUpdateRootInfo()- Specified by:
isAutoUpdateRootInfoin classConfiguration
-
setAutoUpdateRootInfo
public void setAutoUpdateRootInfo(boolean enabled) - Specified by:
setAutoUpdateRootInfoin classConfiguration
-
getPreferredGlobalServiceHandle
- Overrides:
getPreferredGlobalServiceHandlein classConfiguration
-
getRootKeys
- Specified by:
getRootKeysin classConfiguration
-
setRootKeys
- Specified by:
setRootKeysin classConfiguration
-
getBootstrapHandles
- Specified by:
getBootstrapHandlesin classConfiguration
-