Uses of Class
org.cloudbus.cloudsim.resources.File
Package
Description
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
Modifier and TypeMethodDescriptionFile.makeMasterCopy()
Clone the current file and make the new file as a master copy as well.File.makeReplica()
Clone the current file and set the cloned one as a replica.final File
File.setDatacenter
(Datacenter datacenter) Sets the Datacenter that will store the file.File.setMasterCopy
(boolean masterCopy) Marks the file as a master copy or replica.Modifier and TypeMethodDescriptionSanStorage.deleteFile
(String fileName) Removes a file from the storage.Gets the file with the specified name.SanStorage.getFileList()
Gets a read-only list with all files stored on the device.Modifier and TypeMethodDescriptionint
Adds a file to the first storage device that has enough capacitydouble
Adds a file to the storage.double
SanStorage.addReservedFile
(File file) Adds a file for which the space has already been reserved.boolean
Checks whether the storageList has the given file.boolean
Checks whether a file is stored in the storage or not.double
SanStorage.deleteFile
(File file) Removes a file from the storage.double
SanStorage.getTransferTime
(File file) Gets the transfer time of a given file.boolean
SanStorage.renameFile
(File file, String newName) Renames a file on the storage.static void
Check if a file object is valid or not, whether the given file object itself and its file name are valid.Modifier and TypeMethodDescriptiondouble
Adds a set of files to the storage.ModifierConstructorDescriptionCopy constructor that creates a clone from a source file and set the given file as a replica.protected
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.