public abstract class AbstractArchiveStorage extends Object implements ArchiveStorageInterface
Constructor and Description |
---|
AbstractArchiveStorage() |
Modifier and Type | Method and Description |
---|---|
void |
delete(DsInfo dsInfo)
This is a dummy implementation.
|
void |
delete(String location)
This is a dummy implementation.
|
void |
get(DsInfo dsInfo,
Path path)
This is a dummy implementation.
|
void |
put(DsInfo dsInfo,
InputStream inputStream)
This is a dummy implementation.
|
void |
put(InputStream inputStream,
String location)
This is a dummy implementation.
|
Set<DfInfo> |
restore(MainStorageInterface mainStorageInterface,
List<DfInfo> dfInfos)
This is a dummy implementation.
|
public void delete(DsInfo dsInfo) throws IOException
delete
in interface ArchiveStorageInterface
dsInfo
- describes the data setIOException
- to indicate failurepublic void delete(String location) throws IOException
delete
in interface ArchiveStorageInterface
location
- where to store the fileIOException
- to indicate failurepublic void get(DsInfo dsInfo, Path path) throws IOException
get
in interface ArchiveStorageInterface
dsInfo
- describes the data setpath
- path of the file to write to (it will be overwritten if it
already exists)IOException
- to indicate failurepublic void put(DsInfo dsInfo, InputStream inputStream) throws IOException
put
in interface ArchiveStorageInterface
dsInfo
- describes the data setinputStream
- stream of data to storeIOException
- to indicate failurepublic void put(InputStream inputStream, String location) throws IOException
put
in interface ArchiveStorageInterface
inputStream
- stream of data to storelocation
- where to store the fileIOException
- to indicate failurepublic Set<DfInfo> restore(MainStorageInterface mainStorageInterface, List<DfInfo> dfInfos)
restore
in interface ArchiveStorageInterface
mainStorageInterface
- the main storage interface to write restored files todfInfos
- list of DfInfo objectsCopyright © 2019 The ICAT Collaboration. All rights reserved.