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.int
boolean
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
(String na, SiteInfo[] sites) void
setResolutionMethod
(int resolutionMethod) void
setRootKeys
(List<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
-
Constructor Details
-
SimpleConfiguration
public SimpleConfiguration()
-
-
Method Details
-
getGlobalSites
- Specified by:
getGlobalSites
in classConfiguration
-
getGlobalValues
- Specified by:
getGlobalValues
in classConfiguration
-
setGlobalSites
- Specified by:
setGlobalSites
in classConfiguration
-
getGlobalNamespace
- Specified by:
getGlobalNamespace
in classConfiguration
-
setGlobalValues
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
- Overrides:
setCacheSites
in classConfiguration
-
getCacheSites
Returns the sites to be used for all resolutions.- Overrides:
getCacheSites
in classConfiguration
-
setLocalSites
- Overrides:
setLocalSites
in classConfiguration
-
getLocalSites
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
- Specified by:
getRootKeys
in classConfiguration
-
setRootKeys
- Specified by:
setRootKeys
in classConfiguration
-
getBootstrapHandles
- Specified by:
getBootstrapHandles
in classConfiguration
-
setBootstrapHandles
- 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
-