Package net.handle.hdllib
Class Configuration
- java.lang.Object
-
- net.handle.hdllib.Configuration
-
- Direct Known Subclasses:
FilesystemConfiguration
,SimpleConfiguration
public abstract class Configuration extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
RM_GLOBAL
static int
RM_WITH_CACHE
-
Constructor Summary
Constructors Constructor Description Configuration()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addRootInfoListener(RootInfoListener listener)
void
checkRootInfoUpToDate(HandleResolver resolver, java.lang.String handle, HandleValue[] handleValues)
void
configureResolver(HandleResolver resolver)
static Configuration
defaultConfiguration()
Get the current default configuration.abstract BootstrapHandles
getBootstrapHandles()
SiteInfo[]
getCacheSites()
abstract NamespaceInfo
getGlobalNamespace()
abstract SiteInfo[]
getGlobalSites()
abstract HandleValue[]
getGlobalValues()
java.util.Map<java.lang.String,java.lang.String>
getLocalAddressMap()
SiteInfo[]
getLocalSites(byte[] na)
SiteInfo[]
getLocalSites(java.lang.String na)
java.lang.String
getPreferredGlobalServiceHandle()
int
getResolutionMethod()
abstract java.util.List<java.security.PublicKey>
getRootKeys()
abstract boolean
isAutoUpdateRootInfo()
boolean
isBootstrapHandlesOld()
java.net.InetAddress
mapLocalAddress(java.net.InetAddress addr)
void
notifyRootInfoOutdated(HandleResolver resolver)
abstract void
persist()
void
removeRootInfoListener(RootInfoListener listener)
void
saveLocalAddressMap()
abstract void
setAutoUpdateRootInfo(boolean enabled)
abstract void
setBootstrapHandles(BootstrapHandles bootstrapHandles)
void
setCacheSites(SiteInfo[] cacheSites)
abstract void
setGlobalSites(SiteInfo[] globalSites)
abstract void
setGlobalValues(HandleValue[] globalValues)
Deprecated.void
setLocalAddressMap(java.util.Map<java.lang.String,java.lang.String> localAddrMap)
void
setLocalSites(byte[] na, SiteInfo[] sites)
void
setLocalSites(java.lang.String na, SiteInfo[] sites)
void
setResolutionMethod(int resolutionMethod)
abstract void
setRootKeys(java.util.List<java.security.PublicKey> rootKeys)
void
startAutoUpdate(HandleResolver resolver)
-
-
-
Field Detail
-
RM_GLOBAL
public static final int RM_GLOBAL
- See Also:
- Constant Field Values
-
RM_WITH_CACHE
public static final int RM_WITH_CACHE
- See Also:
- Constant Field Values
-
-
Method Detail
-
defaultConfiguration
public static final Configuration defaultConfiguration()
Get the current default configuration.
-
setResolutionMethod
public void setResolutionMethod(int resolutionMethod)
-
getResolutionMethod
public int getResolutionMethod()
-
getCacheSites
public SiteInfo[] getCacheSites()
-
setCacheSites
public void setCacheSites(SiteInfo[] cacheSites)
-
getGlobalSites
public abstract SiteInfo[] getGlobalSites()
-
setGlobalSites
public abstract void setGlobalSites(SiteInfo[] globalSites)
-
getGlobalNamespace
public abstract NamespaceInfo getGlobalNamespace()
-
getGlobalValues
public abstract HandleValue[] getGlobalValues()
-
setGlobalValues
@Deprecated public abstract void setGlobalValues(HandleValue[] globalValues)
Deprecated.
-
getRootKeys
public abstract java.util.List<java.security.PublicKey> getRootKeys()
-
setRootKeys
public abstract void setRootKeys(java.util.List<java.security.PublicKey> rootKeys)
-
getBootstrapHandles
public abstract BootstrapHandles getBootstrapHandles()
-
setBootstrapHandles
public abstract void setBootstrapHandles(BootstrapHandles bootstrapHandles)
-
persist
public abstract void persist()
-
getLocalSites
public SiteInfo[] getLocalSites(byte[] na)
-
getLocalSites
public SiteInfo[] getLocalSites(java.lang.String na)
-
mapLocalAddress
public java.net.InetAddress mapLocalAddress(java.net.InetAddress addr)
-
getLocalAddressMap
public java.util.Map<java.lang.String,java.lang.String> getLocalAddressMap()
-
saveLocalAddressMap
public void saveLocalAddressMap() throws java.io.IOException
- Throws:
java.io.IOException
-
setLocalAddressMap
public void setLocalAddressMap(java.util.Map<java.lang.String,java.lang.String> localAddrMap)
-
setLocalSites
public void setLocalSites(byte[] na, SiteInfo[] sites)
-
setLocalSites
public void setLocalSites(java.lang.String na, SiteInfo[] sites)
-
getPreferredGlobalServiceHandle
public java.lang.String getPreferredGlobalServiceHandle()
-
configureResolver
public void configureResolver(HandleResolver resolver)
-
isAutoUpdateRootInfo
public abstract boolean isAutoUpdateRootInfo()
-
setAutoUpdateRootInfo
public abstract void setAutoUpdateRootInfo(boolean enabled)
-
addRootInfoListener
public void addRootInfoListener(RootInfoListener listener)
-
removeRootInfoListener
public void removeRootInfoListener(RootInfoListener listener)
-
notifyRootInfoOutdated
public void notifyRootInfoOutdated(HandleResolver resolver)
-
checkRootInfoUpToDate
public void checkRootInfoUpToDate(HandleResolver resolver, java.lang.String handle, HandleValue[] handleValues)
-
isBootstrapHandlesOld
public boolean isBootstrapHandlesOld()
-
startAutoUpdate
public void startAutoUpdate(HandleResolver resolver)
-
-