public abstract class MainStorageWithoutArchive extends Object implements MainStorageInterface
Constructor and Description |
---|
MainStorageWithoutArchive() |
Modifier and Type | Method and Description |
---|---|
void |
delete(DsInfo dsInfo)
This is a dummy implementation
|
boolean |
exists(DsInfo dsInfo)
This is a dummy implementation
|
List<DfInfo> |
getDatafilesToArchive(long lowArchivingLevel,
long highArchivingLevel)
Return the list of DfInfos which should be archived to reduce the used storage to between
lowArchivingLevel and highArchivingLevel.
|
List<DsInfo> |
getDatasetsToArchive(long lowArchivingLevel,
long highArchivingLevel)
Return the list of DsInfos which should be archived to reduce the used storage to between
lowArchivingLevel and highArchivingLevel.
|
void |
put(InputStream inputStream,
String location)
This is a dummy implementation - only used when a file is restored from archive so the
Datafile.location field in ICAT is already known.
|
public void delete(DsInfo dsInfo) throws IOException
delete
in interface MainStorageInterface
dsInfo
- describes the data set with the files to be deletedIOException
public boolean exists(DsInfo dsInfo) throws IOException
exists
in interface MainStorageInterface
dsInfo
- describes the data set being queriedIOException
public void put(InputStream inputStream, String location) throws IOException
put
in interface MainStorageInterface
inputStream
- stream of data to storelocation
- where to store the fileIOException
public List<DsInfo> getDatasetsToArchive(long lowArchivingLevel, long highArchivingLevel) throws IOException
MainStorageInterface
getDatasetsToArchive
in interface MainStorageInterface
lowArchivingLevel
- don't try to reduce space below this levelhighArchivingLevel
- if storage used is less than this return an empty list. Otherwise identify the
list of DsInfos to get the space down to lowArchivingLevelIOException
public List<DfInfo> getDatafilesToArchive(long lowArchivingLevel, long highArchivingLevel) throws IOException
MainStorageInterface
getDatafilesToArchive
in interface MainStorageInterface
lowArchivingLevel
- don't try to reduce space below this levelhighArchivingLevel
- if storage used is less than this return an empty list. Otherwise identify the
list of DsInfos to get the space down to lowArchivingLevelIOException
Copyright © 2016 The ICAT Collaboration. All rights reserved.