public interface ArchiveStorageInterface
Modifier and Type | Method and Description |
---|---|
void |
delete(DsInfo dsInfo)
Delete the specified data set.
|
void |
delete(String location)
Remove the data file from the specified location.
|
void |
get(DsInfo dsInfo,
Path path)
Get the specified data set.
|
void |
put(DsInfo dsInfo,
InputStream inputStream)
Store the specified data set.
|
void |
put(InputStream inputStream,
String location)
Store the data file at the specified location.
|
Set<DfInfo> |
restore(MainStorageInterface mainStorageInterface,
List<DfInfo> dfInfos)
Restore the datafiles from archive to main storage.
|
void delete(DsInfo dsInfo) throws IOException
dsInfo
- describes the data setIOException
void delete(String location) throws IOException
location
- where to store the fileIOException
void get(DsInfo dsInfo, Path path) throws IOException
dsInfo
- describes the data setpath
- path of the file to write to (it will be overwritten if it already exists)IOException
void put(DsInfo dsInfo, InputStream inputStream) throws IOException
dsInfo
- describes the data setinputStream
- IOException
void put(InputStream inputStream, String location) throws IOException
inputStream
- stream of data to storelocation
- where to store the fileIOException
Set<DfInfo> restore(MainStorageInterface mainStorageInterface, List<DfInfo> dfInfos) throws IOException
mainStorageInterface
- the main storage interface to write restored files todfInfos
- list of DfInfo objectsIOException
Copyright © 2016 The ICAT Collaboration. All rights reserved.