Class CachedUnisaveClient
- java.lang.Object
-
- psidev.psi.mi.jami.bridges.fetcher.AbstractCachedFetcher
-
- psidev.psi.mi.jami.bridges.unisave.CachedUnisaveClient
-
- All Implemented Interfaces:
CachedFetcher
,SequenceVersionFetcher
public class CachedUnisaveClient extends AbstractCachedFetcher implements SequenceVersionFetcher
Cached unisave client- Since:
01/10/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
Fields Modifier and Type Field Description static String
CACHE_NAME
ConstantCACHE_NAME="unisave-service-cache"
-
Fields inherited from class psidev.psi.mi.jami.bridges.fetcher.AbstractCachedFetcher
EHCACHE_CONFIG_FILE
-
-
Constructor Summary
Constructors Constructor Description CachedUnisaveClient()
Constructor for CachedUnisaveClient.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
fetchSequenceFromVersion(String id, int version)
fetchSequenceFromVersion.int
fetchVersionFromSequence(String id, String sequence)
fetchVersionFromSequence.-
Methods inherited from class psidev.psi.mi.jami.bridges.fetcher.AbstractCachedFetcher
clearCache, getFromCache, initialiseCache, initialiseCache, shutDownCache, storeInCache
-
-
-
-
Field Detail
-
CACHE_NAME
public static final String CACHE_NAME
ConstantCACHE_NAME="unisave-service-cache"
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CachedUnisaveClient
public CachedUnisaveClient() throws BridgeFailedException
Constructor for CachedUnisaveClient.
- Throws:
BridgeFailedException
- if any.
-
-
Method Detail
-
fetchSequenceFromVersion
public String fetchSequenceFromVersion(String id, int version) throws BridgeFailedException
fetchSequenceFromVersion.
- Specified by:
fetchSequenceFromVersion
in interfaceSequenceVersionFetcher
- Parameters:
id
- aString
object.version
- a int.- Returns:
- a
String
object. - Throws:
BridgeFailedException
- if any.
-
fetchVersionFromSequence
public int fetchVersionFromSequence(String id, String sequence) throws BridgeFailedException
fetchVersionFromSequence.
- Specified by:
fetchVersionFromSequence
in interfaceSequenceVersionFetcher
- Parameters:
id
- aString
object.sequence
- aString
object.- Returns:
- a int.
- Throws:
BridgeFailedException
- if any.
-
-