public class NetworkDatacenter extends Datacenter
| Modifier and Type | Field and Description |
|---|---|
Map<Integer,Integer> |
HostToSwitchid |
Map<Integer,Switch> |
Switchlist |
Map<Integer,Integer> |
VmtoHostlist |
Map<Integer,Integer> |
VmToSwitchid |
| Constructor and Description |
|---|
NetworkDatacenter(String name,
DatacenterCharacteristics characteristics,
VmAllocationPolicy vmAllocationPolicy,
List<Storage> storageList,
double schedulingInterval)
Allocates a new NetworkDatacenter object.
|
| Modifier and Type | Method and Description |
|---|---|
Map<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, getDebts, getHostList, getLastProcessTime, getRegionalCisName, getSchedulingInterval, getStorageList, getVmAllocationPolicy, getVmList, predictFileTransferTime, printDebts, processCloudlet, processCloudletCancel, processCloudletMove, processCloudletPause, processCloudletResume, processCloudletStatus, processDataAdd, processDataDelete, processEvent, processOtherEvent, processPingRequest, processVmCreate, processVmDestroy, processVmMigrate, registerOtherEntity, setCharacteristics, setDebts, 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 NetworkDatacenter(String name, DatacenterCharacteristics characteristics, VmAllocationPolicy vmAllocationPolicy, List<Storage> storageList, double schedulingInterval) throws 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 vmAllocationPolicyException - This happens when one of the following scenarios occur:
public Map<Integer,Switch> getEdgeSwitch()
public boolean processVmCreateNetwork(Vm vm)
protected void processCloudletSubmit(SimEvent ev, boolean ack)
processCloudletSubmit in class Datacenterev - a SimEvent objectack - an acknowledgementCopyright © 2012 The Cloud Computing and Distributed Systems (CLOUDS) Laboratory, The University of Melbourne. All Rights Reserved.