public class RemotePDPProvider extends SerializableCache<String,SortedSet<String>> implements PDPProvider
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SERVER |
cacheFileName, serializedCache
Constructor and Description |
---|
RemotePDPProvider() |
RemotePDPProvider(boolean useCache) |
Modifier and Type | Method and Description |
---|---|
Structure |
getDomain(String pdpDomainName,
AtomCache cache)
Get the structure for a particular PDP domain
|
PDPDomain |
getPDPDomain(String pdpDomainName)
Get a StructureIdentifier representing the specified PDP domain.
|
SortedSet<String> |
getPDPDomainNamesForPDB(String pdbId)
Get a list of all PDP domains for a given PDB entry
|
String |
getServer() |
static void |
main(String[] args) |
void |
setServer(String server) |
cache, disableCache, enableCache, flushCache, get, isCacheEnabled, reloadFromFile
public static final String DEFAULT_SERVER
public RemotePDPProvider()
public RemotePDPProvider(boolean useCache) throws IOException
useCache
- IOException
public static void main(String[] args) throws IOException, StructureException
IOException
StructureException
public Structure getDomain(String pdpDomainName, AtomCache cache) throws IOException, StructureException
getDomain
in interface PDPProvider
pdpDomainName
- PDP identifier, e.g. "PDP:4HHBAa"cache
- AtomCache, responsible for fetching and storing the coordinatesIOException
- if the server cannot be reachedStructureException
- For errors parsing the structurepublic PDPDomain getPDPDomain(String pdpDomainName) throws IOException
getPDPDomain
in interface PDPProvider
pdpDomainName
- PDP domain nameIOException
- if the server cannot be reachedpublic SortedSet<String> getPDPDomainNamesForPDB(String pdbId) throws IOException
getPDPDomainNamesForPDB
in interface PDPProvider
pdbId
- PDB IDIOException
- if the server cannot be reachedCopyright © 2000–2018 BioJava. All rights reserved.