Class NetworkDatacenter
java.lang.Object
org.cloudsimplus.core.CloudSimEntity
org.cloudsimplus.datacenters.DatacenterSimple
org.cloudsimplus.datacenters.network.NetworkDatacenter
- All Implemented Interfaces:
Comparable<SimEntity>,Runnable,Identifiable,Nameable,SimEntity,Sizeable,Datacenter,TimeZoned,PowerAware<PowerModelDatacenter>
A
Datacenter whose Hosts have network support.
It contains all the information about the internal network.
For example, which NetworkVm is connected to which Switch, etc.
Please refer to the following publication for more details:
- Author:
- Saurabh Kumar Garg, Manoel Campos da Silva Filho
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cloudsimplus.core.SimEntity
SimEntity.State -
Field Summary
Fields inherited from interface org.cloudsimplus.datacenters.Datacenter
DEF_BW_PERCENT_FOR_MIGRATION, LOGGER, NULLFields inherited from interface org.cloudsimplus.datacenters.TimeZoned
MAX_TIME_ZONE_OFFSET, MIN_TIME_ZONE_OFFSET -
Constructor Summary
ConstructorsConstructorDescriptionNetworkDatacenter(Simulation simulation, List<? extends NetworkHost> hostList) Creates a NetworkDatacenter that uses aVmAllocationPolicySimpleas default.NetworkDatacenter(Simulation simulation, List<? extends NetworkHost> hostList, VmAllocationPolicy vmAllocationPolicy) Creates a NetworkDatacenter with the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds aSwitchto the Datacenter.Returns an unmodifiable host list.Methods inherited from class org.cloudsimplus.datacenters.DatacenterSimple
addHost, addHostList, addOnHostAvailableListener, addOnVmMigrationFinishListener, disableMigrations, enableMigrations, finishVmMigration, getActiveHostStream, getCloudletProcessingUpdateInterval, getHost, getHostById, isMigrationsEnabled, processCloudlet, processCloudletCancel, processCloudletPause, processCloudletResume, processCloudletSubmit, processEvent, processPingRequest, processVmDestroy, removeHost, requestVmMigration, requestVmMigration, setBandwidthPercentForMigration, setCharacteristics, setDatacenterStorage, setHostSearchRetryDelay, setPowerModel, setSchedulingInterval, setTimeZone, setupHost, setVmAllocationPolicy, shutdown, size, startInternal, toString, updateActiveHostsNumber, updateCloudletProcessing, updateHostsProcessingMethods inherited from class org.cloudsimplus.core.CloudSimEntity
cancelEvent, compareTo, getNextEvent, getNextEvent, isAlive, isFinished, isStarted, pause, run, run, schedule, schedule, schedule, schedule, schedule, schedule, scheduleFirst, scheduleFirst, scheduleFirstNow, scheduleFirstNow, scheduleNow, scheduleNow, selectEvent, send, send, sendNow, sendNow, setEventBuffer, setId, setName, start, waitForEventMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.cloudsimplus.datacenters.Datacenter
getActiveHostsNumber, getBandwidthPercentForMigration, getCharacteristics, getDatacenterStorage, getHostSearchRetryDelay, getSchedulingInterval, getVmAllocationPolicyMethods inherited from interface org.cloudsimplus.core.Identifiable
getIdMethods inherited from interface org.cloudsimplus.power.PowerAware
getPowerModelMethods inherited from interface org.cloudsimplus.core.SimEntity
getShutdownTime, getSimulation, getStartTime, getState, isAlive, isFinished, isStarted, run, schedule, schedule, schedule, schedule, schedule, schedule, schedule, setName, setState, startMethods inherited from interface org.cloudsimplus.datacenters.TimeZoned
distance, getTimeZone, validateTimeZone
-
Constructor Details
-
NetworkDatacenter
public NetworkDatacenter(Simulation simulation, List<? extends NetworkHost> hostList, VmAllocationPolicy vmAllocationPolicy) Creates a NetworkDatacenter with the given parameters.- Parameters:
simulation- TheCloudSimPlusinstance that represents the simulation the Entity belongs tohostList- list ofHosts that will compound the DatacentervmAllocationPolicy- the policy to be used to allocateVms into hosts- Throws:
IllegalArgumentException- when this Host has zeroPes
-
NetworkDatacenter
Creates a NetworkDatacenter that uses aVmAllocationPolicySimpleas default.- Parameters:
simulation- TheCloudSimPlusinstance that represents the simulation the Entity belongs tohostList- list ofHosts that will compound the Datacenter- Throws:
IllegalArgumentException- when this Host has zeroPes
-
-
Method Details
-
getEdgeSwitch
- Returns:
- a list of all
EdgeSwitchs in the Datacenter network. - See Also:
-
addSwitch
-
getSwitchMap
-
getHostList
Description copied from interface:DatacenterReturns an unmodifiable host list.- Specified by:
getHostListin interfaceDatacenter- Overrides:
getHostListin classDatacenterSimple- Returns:
- an unmodifiable host list
-