public class RemoteDomainProvider extends SerializableCache<String,SortedSet<String>> implements DomainProvider
| Modifier and Type | Field and Description |
|---|---|
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() |
SortedSet<String> |
getDomainNames(String name)
Get a list of constituent domain identifiers
|
SortedSet<String> |
getRepresentativeDomains()
Get the full list of representative domains for the PDB.
|
static void |
main(String[] args) |
cache, disableCache, enableCache, get, isCacheEnabled, reloadFromFilepublic RemoteDomainProvider()
public RemoteDomainProvider(boolean cache) throws IOException
cache - IOExceptionpublic SortedSet<String> getDomainNames(String name) throws IOException, StructureException
DomainProvidergetDomainNames in interface DomainProvidername - a structure identifierIOException - For IO errors getting the domainsStructureException - For errors converting name to a valid identifierpublic static void main(String[] args) throws IOException, StructureException
IOExceptionStructureExceptionpublic void flushCache()
flushCache in class SerializableCache<String,SortedSet<String>>public SortedSet<String> getRepresentativeDomains() throws IOException
DomainProvidergetRepresentativeDomains in interface DomainProviderIOException - For IO errors getting the representativesCopyright © 2000–2019 BioJava. All rights reserved.