DomainProvider
public class RemoteDomainProvider extends SerializableCache<java.lang.String,java.util.SortedSet<java.lang.String>> implements DomainProvider
Modifier and Type | Field | Description |
---|---|---|
java.lang.String |
url |
cacheFileName, serializedCache
Constructor | Description |
---|---|
RemoteDomainProvider() |
|
RemoteDomainProvider(boolean cache) |
initialize this provider with caching enabled
|
Modifier and Type | Method | 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cache, disableCache, enableCache, get, isCacheEnabled, reloadFromFile
public RemoteDomainProvider()
public RemoteDomainProvider(boolean cache) throws java.io.IOException
cache
- java.io.IOException
public java.util.SortedSet<java.lang.String> getDomainNames(java.lang.String name) throws java.io.IOException, StructureException
DomainProvider
getDomainNames
in interface DomainProvider
name
- 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.IOException
StructureException
public 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
DomainProvider
getRepresentativeDomains
in interface DomainProvider
java.io.IOException
- For IO errors getting the representatives