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 BootstrapHandles
getBootstrapHandles()
SiteInfo[]
getCacheSites()
Returns the sites to be used for all resolutions.NamespaceInfo
getGlobalNamespace()
SiteInfo[]
getGlobalSites()
HandleValue[]
getGlobalValues()
SiteInfo[]
getLocalSites(java.lang.String na)
Returns the sites to be used for all administrative operations under the given prefix.int
getResolutionMethod()
java.util.List<java.security.PublicKey>
getRootKeys()
boolean
isAutoUpdateRootInfo()
void
persist()
void
setAutoUpdateRootInfo(boolean enabled)
void
setBootstrapHandles(BootstrapHandles bootstrapHandles)
void
setCacheSites(SiteInfo[] cacheSites)
void
setGlobalSites(SiteInfo[] globalSites)
void
setGlobalValues(HandleValue[] globalValues)
Deprecated.void
setLocalSites(java.lang.String na, SiteInfo[] sites)
void
setResolutionMethod(int resolutionMethod)
void
setRootKeys(java.util.List<java.security.PublicKey> rootKeys)
void
setUseCacheSitesForAll(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:
getGlobalSites
in classConfiguration
-
getGlobalValues
public HandleValue[] getGlobalValues()
- Specified by:
getGlobalValues
in classConfiguration
-
setGlobalSites
public void setGlobalSites(SiteInfo[] globalSites)
- Specified by:
setGlobalSites
in classConfiguration
-
getGlobalNamespace
public NamespaceInfo getGlobalNamespace()
- Specified by:
getGlobalNamespace
in classConfiguration
-
setGlobalValues
@Deprecated public void setGlobalValues(HandleValue[] globalValues)
Deprecated.- Specified by:
setGlobalValues
in classConfiguration
-
persist
public void persist()
- Specified by:
persist
in classConfiguration
-
getResolutionMethod
public int getResolutionMethod()
- Overrides:
getResolutionMethod
in classConfiguration
-
setResolutionMethod
public void setResolutionMethod(int resolutionMethod)
- Overrides:
setResolutionMethod
in classConfiguration
-
setCacheSites
public void setCacheSites(SiteInfo[] cacheSites)
- Overrides:
setCacheSites
in classConfiguration
-
getCacheSites
public SiteInfo[] getCacheSites()
Returns the sites to be used for all resolutions.- Overrides:
getCacheSites
in classConfiguration
-
setLocalSites
public void setLocalSites(java.lang.String na, SiteInfo[] sites)
- Overrides:
setLocalSites
in classConfiguration
-
getLocalSites
public SiteInfo[] getLocalSites(java.lang.String na)
Returns the sites to be used for all administrative operations under the given prefix.- Overrides:
getLocalSites
in 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:
getRootKeys
in classConfiguration
-
setRootKeys
public void setRootKeys(java.util.List<java.security.PublicKey> rootKeys)
- Specified by:
setRootKeys
in classConfiguration
-
getBootstrapHandles
public BootstrapHandles getBootstrapHandles()
- Specified by:
getBootstrapHandles
in classConfiguration
-
setBootstrapHandles
public void setBootstrapHandles(BootstrapHandles bootstrapHandles)
- Specified by:
setBootstrapHandles
in classConfiguration
-
isAutoUpdateRootInfo
public boolean isAutoUpdateRootInfo()
- Specified by:
isAutoUpdateRootInfo
in classConfiguration
-
setAutoUpdateRootInfo
public void setAutoUpdateRootInfo(boolean enabled)
- Specified by:
setAutoUpdateRootInfo
in classConfiguration
-
-