Package nl.knaw.dans.layerstore
Interface ArchiveProvider
- All Known Implementing Classes:
DmfTarArchiveProvider,TarArchiveProvider,ZipArchiveProvider
public interface ArchiveProvider
Provides a way to create an Archive. The implementation should provide a way to configure where the archive is stored.
-
Method Summary
Modifier and TypeMethodDescriptioncreateArchive(long layerId) Create a newArchiveinstance for the given layer ID.booleanexists(long layerId) Check if an archive exists at the given path.List all archived layer IDs.
-
Method Details
-
createArchive
Create a newArchiveinstance for the given layer ID.- Parameters:
layerId- the layer ID- Returns:
- the new archive
-
exists
boolean exists(long layerId) Check if an archive exists at the given path.- Parameters:
layerId- the layer ID- Returns:
- true if the archive exists, false otherwise
-
listArchivedLayers
List all archived layer IDs.- Returns:
- a list of layer IDs for which archives exist
- Throws:
IOException
-