public class RemoteDomainProvider extends SerializableCache<java.lang.String,java.util.SortedSet<java.lang.String>> implements DomainProvider
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
url |
cacheFileName, serializedCache| Constructor and Description |
|---|
RemoteDomainProvider() |
RemoteDomainProvider(boolean cache)
initialize this provider with caching enabled
|
| Modifier and Type | Method and Description |
|---|---|
void |
flushCache() |
java.util.SortedSet<java.lang.String> |
getDomainNames(java.lang.String name)
Get a list of constituent domain identifiers
|
java.util.SortedSet<java.lang.String> |
getRepresentativeDomains()
Get the full list of representative domains for the PDB.
|
static void |
main(java.lang.String[] args) |
cache, disableCache, enableCache, get, isCacheEnabled, reloadFromFilepublic RemoteDomainProvider()
public RemoteDomainProvider(boolean cache)
throws java.io.IOException
cache - java.io.IOExceptionpublic java.util.SortedSet<java.lang.String> getDomainNames(java.lang.String name)
throws java.io.IOException,
StructureException
DomainProvidergetDomainNames in interface DomainProvidername - a structure identifierjava.io.IOException - For IO errors getting the domainsStructureException - For errors converting name to a valid identifierpublic static void main(java.lang.String[] args)
throws java.io.IOException,
StructureException
java.io.IOExceptionStructureExceptionpublic void flushCache()
flushCache in class SerializableCache<java.lang.String,java.util.SortedSet<java.lang.String>>public java.util.SortedSet<java.lang.String> getRepresentativeDomains()
throws java.io.IOException
DomainProvidergetRepresentativeDomains in interface DomainProviderjava.io.IOException - For IO errors getting the representatives