Package org.cloudbus.cloudsim.resources
Class SimpleStorage
java.lang.Object
org.cloudbus.cloudsim.resources.ResourceAbstract
org.cloudbus.cloudsim.resources.ResourceManageableAbstract
org.cloudbus.cloudsim.resources.SimpleStorage
- All Implemented Interfaces:
Resource
,ResourceCapacity
,ResourceManageable
A simple storage that just manages the device capacity and raw allocated (used) space (in Megabytes).
It doesn't deals with files neither with file system operations such as
file inclusion or deletion.
Such a class allows managing the Storage capacity and allocation.
- Since:
- CloudSim Plus 1.0
- Author:
- Manoel Campos da Silva Filho
-
Field Summary
Fields inherited from class org.cloudbus.cloudsim.resources.ResourceAbstract
capacity
Fields inherited from interface org.cloudbus.cloudsim.resources.ResourceManageable
NULL
-
Constructor Summary
-
Method Summary
Methods inherited from class org.cloudbus.cloudsim.resources.ResourceManageableAbstract
addCapacity, allocateResource, deallocateAllResources, deallocateAndRemoveResource, deallocateResource, getAvailableResource, removeCapacity, setAllocatedResource, setAvailableResource, setCapacity, sumAvailableResource, sumCapacity, toString
Methods inherited from class org.cloudbus.cloudsim.resources.ResourceAbstract
getAllocatedResource, getCapacity, getUnit, isAmountAvailable, isAmountAvailable, isResourceAmountBeingUsed, isSuitable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.cloudbus.cloudsim.resources.Resource
getAllocatedResource, getPercentUtilization, getUnit, isAmountAvailable, isAmountAvailable, isAmountAvailable, isFull, isSubClassOf
Methods inherited from interface org.cloudbus.cloudsim.resources.ResourceCapacity
getCapacity
Methods inherited from interface org.cloudbus.cloudsim.resources.ResourceManageable
allocateResource, deallocateResource, isResourceAmountBeingUsed, isSuitable, setAllocatedResource
-
Constructor Details
-
SimpleStorage
public SimpleStorage(long capacity) Creates a new Storage device.- Parameters:
capacity
- the storage capacity in Megabytes
-