public class CondorVM extends Vm
| Constructor and Description |
|---|
CondorVM(int id,
int userId,
double mips,
int numberOfPes,
int ram,
long bw,
long size,
java.lang.String vmm,
CloudletScheduler cloudletScheduler)
Creates a new CondorVM object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLocalFile(File file)
Adds a file to the local file system
|
int |
getState()
Gets the state of the task
|
boolean |
hasLocalFile(File file)
Tells whether a file is in the local file system
|
void |
removeLocalFile(File file)
Removes a file from the local file system
|
void |
setState(int tag)
Sets the state of the task
|
addStateHistoryEntry, getBw, getCloudletScheduler, getCurrentAllocatedBw, getCurrentAllocatedMips, getCurrentAllocatedRam, getCurrentAllocatedSize, getCurrentRequestedBw, getCurrentRequestedMaxMips, getCurrentRequestedMips, getCurrentRequestedRam, getCurrentRequestedTotalMips, getHost, getId, getMips, getNumberOfPes, getRam, getSize, getStateHistory, getTotalUtilizationOfCpu, getTotalUtilizationOfCpuMips, getUid, getUid, getUserId, getVmm, isBeingInstantiated, isInMigration, setBeingInstantiated, setBw, setCloudletScheduler, setCurrentAllocatedBw, setCurrentAllocatedMips, setCurrentAllocatedRam, setCurrentAllocatedSize, setHost, setId, setInMigration, setMips, setNumberOfPes, setRam, setSize, setUid, setUserId, setVmm, updateVmProcessingpublic CondorVM(int id,
int userId,
double mips,
int numberOfPes,
int ram,
long bw,
long size,
java.lang.String vmm,
CloudletScheduler cloudletScheduler)
id - unique ID of the VMuserId - ID of the VM's ownermips - the mipsnumberOfPes - amount of CPUsram - amount of rambw - amount of bandwidthsize - amount of storagevmm - virtual machine monitorcloudletScheduler - cloudletScheduler policy for cloudletspublic final void setState(int tag)
type - the typepublic final int getState()
public void addLocalFile(File file)
file - to file to be added to the localpublic void removeLocalFile(File file)
file - to file to be removed to the localpublic boolean hasLocalFile(File file)