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<Long> |
getDatasets(long invId)
This is a dummy implementation
|
List<Long> |
getInvestigations()
This is a dummy implementation
|
long |
getUsedSpace()
This is a dummy implementation
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
delete, get, getPath, put
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<Long> getInvestigations() throws IOException
getInvestigations
in interface MainStorageInterface
IOException
public List<Long> getDatasets(long invId) throws IOException
getDatasets
in interface MainStorageInterface
invId
- The id of the investigationIOException
public long getUsedSpace() throws IOException
getUsedSpace
in interface MainStorageInterface
IOException
Copyright © 2014 The ICAT Collaboration. All rights reserved.