public class SanStorage extends HarddriveStorage
| Constructor and Description |
|---|
SanStorage(double capacity,
double bandwidth,
double networkLatency)
Creates a new SAN with a given capacity, latency, and bandwidth of the network connection.
|
SanStorage(java.lang.String name,
double capacity,
double bandwidth,
double networkLatency)
Creates a new SAN with a given capacity, latency, and bandwidth of the network connection.
|
| Modifier and Type | Method and Description |
|---|---|
double |
addFile(File file)
Adds a file to the storage.
|
double |
addFile(java.util.List<File> list)
Adds a set of files to the storage.
|
double |
addReservedFile(File file)
Adds a file for which the space has already been reserved.
|
double |
deleteFile(File file)
Removes a file from the storage.
|
double |
deleteFile(java.lang.String fileName,
File file)
Removes a file from the storage.
|
double |
getMaxTransferRate()
Gets the maximum transfer rate of the storage in MB/sec.
|
contains, contains, deleteFile, getAvailableSpace, getAvgSeekTime, getCapacity, getCurrentSize, getFile, getFileNameList, getLatency, getName, getNumStoredFile, hasPotentialAvailableSpace, isFull, renameFile, reserveSpace, setAvgSeekTime, setAvgSeekTime, setLatency, setMaxTransferRatepublic SanStorage(double capacity,
double bandwidth,
double networkLatency)
throws ParameterException
capacity - Storage device capacitybandwidth - Network bandwidthnetworkLatency - Network latencyParameterException - when the name and the capacity are not validpublic SanStorage(java.lang.String name,
double capacity,
double bandwidth,
double networkLatency)
throws ParameterException
name - the name of the new harddrive storagecapacity - Storage device capacitybandwidth - Network bandwidthnetworkLatency - Network latencyParameterException - when the name and the capacity are not validpublic double addReservedFile(File file)
addReservedFile in interface StorageaddReservedFile in class HarddriveStoragefile - the file to be addedpublic double getMaxTransferRate()
getMaxTransferRate in interface StoragegetMaxTransferRate in class HarddriveStoragepublic double addFile(File file)
addFile in interface StorageaddFile in class HarddriveStoragefile - the file to be addedpublic double addFile(java.util.List<File> list)
gridsim.datagrid.File#getTransactionTime().addFile in interface StorageaddFile in class HarddriveStoragelist - the files to be addedpublic double deleteFile(java.lang.String fileName,
File file)
gridsim.datagrid.File#getTransactionTime().deleteFile in interface StoragedeleteFile in class HarddriveStoragefileName - the name of the file to be removedfile - the file which is removed from the storage is returned through this parameterpublic double deleteFile(File file)
gridsim.datagrid.File#getTransactionTime().deleteFile in interface StoragedeleteFile in class HarddriveStoragefile - the file which is removed from the storage is returned through this parameter