Package net.handle.hdllib
Class SimpleConfiguration
- java.lang.Object
-
- net.handle.hdllib.Configuration
-
- net.handle.hdllib.SimpleConfiguration
-
public class SimpleConfiguration extends Configuration
-
-
Field Summary
-
Fields inherited from class net.handle.hdllib.Configuration
RM_GLOBAL, RM_WITH_CACHE
-
-
Constructor Summary
Constructors Constructor Description SimpleConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BootstrapHandlesgetBootstrapHandles()SiteInfo[]getCacheSites()Returns the sites to be used for all resolutions.NamespaceInfogetGlobalNamespace()SiteInfo[]getGlobalSites()HandleValue[]getGlobalValues()SiteInfo[]getLocalSites(java.lang.String na)Returns the sites to be used for all administrative operations under the given prefix.intgetResolutionMethod()java.util.List<java.security.PublicKey>getRootKeys()booleanisAutoUpdateRootInfo()voidpersist()voidsetAutoUpdateRootInfo(boolean enabled)voidsetBootstrapHandles(BootstrapHandles bootstrapHandles)voidsetCacheSites(SiteInfo[] cacheSites)voidsetGlobalSites(SiteInfo[] globalSites)voidsetGlobalValues(HandleValue[] globalValues)Deprecated.voidsetLocalSites(java.lang.String na, SiteInfo[] sites)voidsetResolutionMethod(int resolutionMethod)voidsetRootKeys(java.util.List<java.security.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
-
-
-
-
Method Detail
-
getGlobalSites
public SiteInfo[] getGlobalSites()
- Specified by:
getGlobalSitesin classConfiguration
-
getGlobalValues
public HandleValue[] getGlobalValues()
- Specified by:
getGlobalValuesin classConfiguration
-
setGlobalSites
public void setGlobalSites(SiteInfo[] globalSites)
- Specified by:
setGlobalSitesin classConfiguration
-
getGlobalNamespace
public NamespaceInfo getGlobalNamespace()
- Specified by:
getGlobalNamespacein classConfiguration
-
setGlobalValues
@Deprecated public void setGlobalValues(HandleValue[] globalValues)
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
public void setCacheSites(SiteInfo[] cacheSites)
- Overrides:
setCacheSitesin classConfiguration
-
getCacheSites
public SiteInfo[] getCacheSites()
Returns the sites to be used for all resolutions.- Overrides:
getCacheSitesin classConfiguration
-
setLocalSites
public void setLocalSites(java.lang.String na, SiteInfo[] sites)- Overrides:
setLocalSitesin classConfiguration
-
getLocalSites
public SiteInfo[] getLocalSites(java.lang.String na)
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
public java.util.List<java.security.PublicKey> getRootKeys()
- Specified by:
getRootKeysin classConfiguration
-
setRootKeys
public void setRootKeys(java.util.List<java.security.PublicKey> rootKeys)
- Specified by:
setRootKeysin classConfiguration
-
getBootstrapHandles
public BootstrapHandles getBootstrapHandles()
- Specified by:
getBootstrapHandlesin classConfiguration
-
setBootstrapHandles
public void setBootstrapHandles(BootstrapHandles bootstrapHandles)
- Specified by:
setBootstrapHandlesin classConfiguration
-
isAutoUpdateRootInfo
public boolean isAutoUpdateRootInfo()
- Specified by:
isAutoUpdateRootInfoin classConfiguration
-
setAutoUpdateRootInfo
public void setAutoUpdateRootInfo(boolean enabled)
- Specified by:
setAutoUpdateRootInfoin classConfiguration
-
-