Class SimpleStorage
java.lang.Object
org.cloudsimplus.resources.ResourceAbstract
org.cloudsimplus.resources.ResourceManageableAbstract
org.cloudsimplus.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 deal 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.cloudsimplus.resources.ResourceAbstract
capacityFields inherited from interface org.cloudsimplus.resources.ResourceManageable
NULL -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.cloudsimplus.resources.ResourceManageableAbstract
addCapacity, allocateResource, deallocateAllResources, deallocateAndRemoveResource, deallocateResource, getAvailableResource, removeCapacity, setAllocatedResource, setAvailableResource, setCapacity, sumAvailableResource, sumCapacity, toStringMethods inherited from class org.cloudsimplus.resources.ResourceAbstract
getAllocatedResource, isAmountAvailable, isAmountAvailable, isResourceAmountBeingUsed, isSuitableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.cloudsimplus.resources.Resource
getAllocatedResource, getPercentUtilization, getUnit, isAmountAvailable, isAmountAvailable, isAmountAvailable, isFull, isSubClassOfMethods inherited from interface org.cloudsimplus.resources.ResourceCapacity
getCapacityMethods inherited from interface org.cloudsimplus.resources.ResourceManageable
allocateResource, deallocateResource, isResourceAmountBeingUsed, isSuitable, setAllocatedResource
-
Constructor Details
-
SimpleStorage
public SimpleStorage(long capacity) Creates a Storage device.- Parameters:
capacity- the storage capacity in Megabytes (MB)
-