Package net.handle.hdllib
Class SimpleConfiguration
java.lang.Object
net.handle.hdllib.Configuration
net.handle.hdllib.SimpleConfiguration
-
Field Summary
Fields inherited from class net.handle.hdllib.Configuration
RM_GLOBAL, RM_WITH_CACHE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSiteInfo[]Returns the sites to be used for all resolutions.SiteInfo[]SiteInfo[]getLocalSites(String na) Returns the sites to be used for all administrative operations under the given prefix.intbooleanvoidpersist()voidsetAutoUpdateRootInfo(boolean enabled) voidsetBootstrapHandles(BootstrapHandles bootstrapHandles) voidsetCacheSites(SiteInfo[] cacheSites) voidsetGlobalSites(SiteInfo[] globalSites) voidsetGlobalValues(HandleValue[] globalValues) Deprecated.voidsetLocalSites(String na, SiteInfo[] sites) voidsetResolutionMethod(int resolutionMethod) voidsetRootKeys(List<PublicKey> rootKeys) voidsetUseCacheSitesForAll(boolean useCacheSitesForAll) Methods inherited from class net.handle.hdllib.Configuration
addRootInfoListener, checkRootInfoUpToDate, configureResolver, defaultConfiguration, getLocalAddressMap, getLocalSites, getPreferredGlobalServiceHandle, isBootstrapHandlesOld, mapLocalAddress, notifyRootInfoOutdated, removeRootInfoListener, saveLocalAddressMap, setLocalAddressMap, setLocalSites, startAutoUpdate
-
Constructor Details
-
SimpleConfiguration
public SimpleConfiguration()
-
-
Method Details
-
getGlobalSites
- Specified by:
getGlobalSitesin classConfiguration
-
getGlobalValues
- Specified by:
getGlobalValuesin classConfiguration
-
setGlobalSites
- Specified by:
setGlobalSitesin classConfiguration
-
getGlobalNamespace
- Specified by:
getGlobalNamespacein classConfiguration
-
setGlobalValues
Deprecated.- Specified by:
setGlobalValuesin classConfiguration
-
persist
public void persist()- Specified by:
persistin classConfiguration
-
getResolutionMethod
public int getResolutionMethod()- Overrides:
getResolutionMethodin classConfiguration
-
setResolutionMethod
public void setResolutionMethod(int resolutionMethod) - Overrides:
setResolutionMethodin classConfiguration
-
setCacheSites
- Overrides:
setCacheSitesin classConfiguration
-
getCacheSites
Returns the sites to be used for all resolutions.- Overrides:
getCacheSitesin classConfiguration
-
setLocalSites
- Overrides:
setLocalSitesin classConfiguration
-
getLocalSites
Returns the sites to be used for all administrative operations under the given prefix.- Overrides:
getLocalSitesin classConfiguration- Parameters:
na- the prefix for which administrative sites are being retrieved- Returns:
- the sites to be used for all administrative operations under the given prefix
-
setUseCacheSitesForAll
public void setUseCacheSitesForAll(boolean useCacheSitesForAll) -
getRootKeys
- Specified by:
getRootKeysin classConfiguration
-
setRootKeys
- Specified by:
setRootKeysin classConfiguration
-
getBootstrapHandles
- Specified by:
getBootstrapHandlesin classConfiguration
-
setBootstrapHandles
- Specified by:
setBootstrapHandlesin classConfiguration
-
isAutoUpdateRootInfo
public boolean isAutoUpdateRootInfo()- Specified by:
isAutoUpdateRootInfoin classConfiguration
-
setAutoUpdateRootInfo
public void setAutoUpdateRootInfo(boolean enabled) - Specified by:
setAutoUpdateRootInfoin classConfiguration
-