public class ClusterStorage extends HarddriveStorage
| Constructor and Description |
|---|
ClusterStorage(java.lang.String name,
double capacity)
Initialize a ClusterStorage
|
| Modifier and Type | Method and Description |
|---|---|
double |
getMaxTransferRate(java.lang.String destination)
Gets the bandwidth from this storage to the destination storage
|
void |
setBandwidth(java.lang.String name,
double bandwidth)
Sets the bandwidth between this storage to the destination storage
|
addFile, addFile, addReservedFile, contains, contains, deleteFile, deleteFile, deleteFile, getAvailableSpace, getAvgSeekTime, getCapacity, getCurrentSize, getFile, getFileNameList, getLatency, getMaxTransferRate, getName, getNumStoredFile, hasPotentialAvailableSpace, isFull, renameFile, reserveSpace, setAvgSeekTime, setAvgSeekTime, setLatency, setMaxTransferRatepublic ClusterStorage(java.lang.String name,
double capacity)
throws ParameterException
name, - name of this storagecapacity, - capacityParameterExceptionpublic final void setBandwidth(java.lang.String name,
double bandwidth)
name - the destination storagebandwidth - public double getMaxTransferRate(java.lang.String destination)
destination -