public class PowerDatacenter extends Datacenter
| Constructor and Description |
|---|
PowerDatacenter(java.lang.String name,
DatacenterCharacteristics characteristics,
VmAllocationPolicy vmAllocationPolicy,
java.util.List<Storage> storageList,
double schedulingInterval)
Instantiates a new datacenter.
|
| Modifier and Type | Method and Description |
|---|---|
protected double |
getCloudletSubmitted()
Checks if is cloudlet submited.
|
int |
getMigrationCount()
Gets the migration count.
|
double |
getPower()
Gets the power.
|
protected void |
incrementMigrationCount()
Increment migration count.
|
boolean |
isDisableMigrations()
Checks if is disable migrations.
|
protected boolean |
isInMigration()
Checks if PowerDatacenter is in migration.
|
protected void |
processCloudletSubmit(SimEvent ev,
boolean ack)
Processes a Cloudlet submission.
|
protected void |
processVmMigrate(SimEvent ev,
boolean ack)
Process the event for an User/Broker who wants to migrate a VM.
|
protected void |
setCloudletSubmitted(double cloudletSubmitted)
Sets the cloudlet submited.
|
void |
setDisableMigrations(boolean disableMigrations)
Sets the disable migrations.
|
protected void |
setMigrationCount(int migrationCount)
Sets the migration count.
|
protected void |
setPower(double power)
Sets the power.
|
protected double |
updateCloudetProcessingWithoutSchedulingFutureEvents()
Update cloudet processing without scheduling future events.
|
protected double |
updateCloudetProcessingWithoutSchedulingFutureEventsForce()
Update cloudet processing without scheduling future events.
|
protected void |
updateCloudletProcessing()
Updates processing of each cloudlet running in this PowerDatacenter.
|
addFile, checkCloudletCompletion, contains, contains, getCharacteristics, getHostList, getLastProcessTime, getRegionalCisName, getSchedulingInterval, getStorageList, getVmAllocationPolicy, getVmList, predictFileTransferTime, processCloudlet, processCloudletCancel, processCloudletMove, processCloudletPause, processCloudletResume, processCloudletStatus, processDataAdd, processDataDelete, processEvent, processOtherEvent, processPingRequest, processVmCreate, processVmDestroy, registerOtherEntity, setCharacteristics, setLastProcessTime, setRegionalCisName, setSchedulingInterval, setStorageList, setVmAllocationPolicy, setVmList, shutdownEntity, startEntitycancelEvent, clone, getEventBuffer, getId, getName, getNextEvent, getNextEvent, getState, numEventsWaiting, numEventsWaiting, pause, run, schedule, schedule, schedule, schedule, scheduleFirst, scheduleFirst, scheduleFirst, scheduleFirst, scheduleFirstNow, scheduleFirstNow, scheduleFirstNow, scheduleFirstNow, scheduleNow, scheduleNow, scheduleNow, scheduleNow, selectEvent, send, send, send, send, sendNow, sendNow, sendNow, sendNow, setEventBuffer, setId, setState, waitForEventpublic PowerDatacenter(java.lang.String name,
DatacenterCharacteristics characteristics,
VmAllocationPolicy vmAllocationPolicy,
java.util.List<Storage> storageList,
double schedulingInterval)
throws java.lang.Exception
name - the namecharacteristics - the res configschedulingInterval - the scheduling intervalutilizationBound - the utilization boundvmAllocationPolicy - the vm provisionerstorageList - the storage listjava.lang.Exception - the exceptionprotected void updateCloudletProcessing()
updateCloudletProcessing in class Datacenterprotected double updateCloudetProcessingWithoutSchedulingFutureEvents()
protected double updateCloudetProcessingWithoutSchedulingFutureEventsForce()
protected void processVmMigrate(SimEvent ev, boolean ack)
DatacenterprocessVmMigrate in class Datacenterev - a Sim_event objectprotected void processCloudletSubmit(SimEvent ev, boolean ack)
DatacenterprocessCloudletSubmit in class Datacenterev - a SimEvent objectack - an acknowledgementpublic double getPower()
protected void setPower(double power)
power - the new powerprotected boolean isInMigration()
public boolean isDisableMigrations()
public void setDisableMigrations(boolean disableMigrations)
disableMigrations - the new disable migrationsprotected double getCloudletSubmitted()
protected void setCloudletSubmitted(double cloudletSubmitted)
cloudletSubmitted - the new cloudlet submitedpublic int getMigrationCount()
protected void setMigrationCount(int migrationCount)
migrationCount - the new migration countprotected void incrementMigrationCount()