public class NetworkDatacenter extends Datacenter
| Modifier and Type | Field and Description |
|---|---|
java.util.Map<java.lang.Integer,java.lang.Integer> |
HostToSwitchid |
java.util.Map<java.lang.Integer,Switch> |
Switchlist |
java.util.Map<java.lang.Integer,java.lang.Integer> |
VmtoHostlist |
java.util.Map<java.lang.Integer,java.lang.Integer> |
VmToSwitchid |
| Constructor and Description |
|---|
NetworkDatacenter(java.lang.String name,
DatacenterCharacteristics characteristics,
VmAllocationPolicy vmAllocationPolicy,
java.util.List<Storage> storageList,
double schedulingInterval)
Allocates a new NetworkDatacenter object.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.Integer,Switch> |
getEdgeSwitch()
Get list of all EdgeSwitches in the Datacenter network One can design similar functions for
other type of switches.
|
protected void |
processCloudletSubmit(SimEvent ev,
boolean ack)
Processes a Cloudlet submission.
|
boolean |
processVmCreateNetwork(Vm vm)
Create the VM within the NetworkDatacenter.
|
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, processVmMigrate, registerOtherEntity, setCharacteristics, setLastProcessTime, setRegionalCisName, setSchedulingInterval, setStorageList, setVmAllocationPolicy, setVmList, shutdownEntity, startEntity, updateCloudletProcessingcancelEvent, 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 java.util.Map<java.lang.Integer,java.lang.Integer> VmToSwitchid
public java.util.Map<java.lang.Integer,java.lang.Integer> HostToSwitchid
public java.util.Map<java.lang.Integer,Switch> Switchlist
public java.util.Map<java.lang.Integer,java.lang.Integer> VmtoHostlist
public NetworkDatacenter(java.lang.String name,
DatacenterCharacteristics characteristics,
VmAllocationPolicy vmAllocationPolicy,
java.util.List<Storage> storageList,
double schedulingInterval)
throws java.lang.Exception
name - the name to be associated with this entity (as required by Sim_entity class from
simjava package)characteristics - an object of DatacenterCharacteristicsstorageList - a LinkedList of storage elements, for data simulationvmAllocationPolicy - the vmAllocationPolicyjava.lang.Exception - This happens when one of the following scenarios occur:
public java.util.Map<java.lang.Integer,Switch> getEdgeSwitch()
public boolean processVmCreateNetwork(Vm vm)
protected void processCloudletSubmit(SimEvent ev, boolean ack)
processCloudletSubmit in class Datacenterev - a SimEvent objectack - an acknowledgement