Uses of Class
org.cloudbus.cloudsim.resources.File
Package | Description |
---|---|
org.cloudbus.cloudsim.resources |
Provides classes that represent different physical and logical
Resource used by simulation
objects such as Hosts and VMs. |
-
Uses of File in org.cloudbus.cloudsim.resources
Methods in org.cloudbus.cloudsim.resources that return File Modifier and Type Method Description File
FileStorage. deleteFile(java.lang.String fileName)
Removes a file from the storage.File
HarddriveStorage. deleteFile(java.lang.String fileName)
File
FileStorage. getFile(java.lang.String fileName)
Gets the file with the specified name.File
HarddriveStorage. getFile(java.lang.String fileName)
File
File. makeMasterCopy()
Clone the current file and make the new file as a master copy as well.File
File. makeReplica()
Clone the current file and set the cloned one as a replica.File
File. setDatacenter(Datacenter datacenter)
Sets the Datacenter that will store the file.Methods in org.cloudbus.cloudsim.resources that return types with arguments of type File Modifier and Type Method Description java.util.List<File>
FileStorage. getFileList()
Gets a read-only list with all files stored on the device.java.util.List<File>
HarddriveStorage. getFileList()
Methods in org.cloudbus.cloudsim.resources with parameters of type File Modifier and Type Method Description int
DatacenterStorage. addFile(File file)
Adds a file to the first storage device that has enough capacitydouble
FileStorage. addFile(File file)
Adds a file to the storage.double
HarddriveStorage. addFile(File file)
Adds a file to the storage.double
SanStorage. addFile(File file)
double
FileStorage. addReservedFile(File file)
Adds a file for which the space has already been reserved.double
HarddriveStorage. addReservedFile(File file)
double
SanStorage. addReservedFile(File file)
boolean
DatacenterStorage. contains(File file)
Checks whether the storageList has the given file.boolean
FileStorage. contains(File file)
Checks whether a file is stored in the storage or not.boolean
HarddriveStorage. contains(File file)
double
FileStorage. deleteFile(File file)
Removes a file from the storage.double
HarddriveStorage. deleteFile(File file)
double
SanStorage. deleteFile(File file)
double
FileStorage. getTransferTime(File file)
Gets the transfer time of a given file.double
HarddriveStorage. getTransferTime(File file)
static boolean
File. isValid(File file)
Check if a file object is valid or not.boolean
FileStorage. renameFile(File file, java.lang.String newName)
Renames a file on the storage.boolean
HarddriveStorage. renameFile(File file, java.lang.String newName)
Method parameters in org.cloudbus.cloudsim.resources with type arguments of type File Modifier and Type Method Description double
FileStorage. addFile(java.util.List<File> list)
Adds a set of files to the storage.double
HarddriveStorage. addFile(java.util.List<File> list)
Constructors in org.cloudbus.cloudsim.resources with parameters of type File Constructor Description File(File file)
Copy constructor that creates a clone from a source file and set the given file as a replica.File(File file, boolean masterCopy)
Copy constructor that creates a clone from a source file and set the given file as a replica or master copy.FileAttribute(File file, int fileSize)
Creates a new FileAttribute object.