public class ArchiveCache extends Object
Modifier and Type | Method and Description |
---|---|
CachedArchiveInfo |
get(String id)
Returns archiveInformation for the given id, or null.
|
static ArchiveCache |
getInstance() |
boolean |
isAvailable(String id)
Checks if an archive is available in the cache aka.
|
boolean |
isFinished(String id)
Checks if an archive retrieval job is finished.
|
CachedArchiveInfo |
register(ArchiveInformation archiveInformation)
Registers an archive in the cache.
|
public static ArchiveCache getInstance()
public CachedArchiveInfo register(ArchiveInformation archiveInformation)
archiveInformation
- the archive informationpublic boolean isAvailable(String id)
id
- the idpublic boolean isFinished(String id)
id
- the idpublic CachedArchiveInfo get(String id)
id
- the idCopyright © 2019 SEMS project @ University of Rostock. All rights reserved.