Uses of Interface
org.cloudbus.cloudsim.hosts.Host
Package
Description
Provides classes that implement policies for a
Datacenter
to select a Host to place or migrate a VM, based on some criteria defined by each class.Provides
VmAllocationPolicy
implementations
that enables VM migration.Provides
Datacenter
implementations,
that represents a physical Cloud Datacenter and contains a set of
Host
that together provide the basic cloud infrastructure.Provides
Host
implementations
that represent a Physical Machine (PM) is used to run Vm
from different cloud customers
(represented by a DatacenterBroker
).Provides network-enabled
Host
implementations.Provides classes and interfaces for modeling how physical or virtual elements
consume power.
Provides
VmScheduler
implementations that are used to schedule the execution of multiple
Vm
inside a given
Host
.Provides
VmSelectionPolicy
implementations that define policies to be used by a Host
to select a Vm
to migrate from a list of VMs.Provides implementations of Virtual Machines (
Vm
)
which are a software package that emulate the architecture of a physical machine.Provides network-enabled
Vm
implementations.Provides
Builder
classes that
implement the Builder Design Pattern
to allow instantiating multiple simulation objects more easily.Provides
Table
classes
that are used to format simulation results in different and structured ways such as
ASCII, CSV or HTML tables.Provides classes to inject random faults during simulation runtime.
Provides
EventListener
implementations to enable event notifications during simulation execution.Provides base classes to enable implementing testbeds in a repeatable manner,
allowing a researcher to execute several simulation runs
for a given experiment and collect statistical data using a scientific approach.
Provides classes to process trace files from Google
Cluster Data that create objects such as Hosts and Cloudlets from such
files.
-
Uses of Host in org.cloudbus.cloudsim.allocationpolicies
Modifier and TypeMethodDescriptionVmAllocationPolicy.getHostList()
Gets the list of Hosts available in aDatacenter
, that will be used by the Allocation Policy to place VMs.VmAllocationPolicyAbstract.getHostList()
Modifier and TypeMethodDescriptionVmAllocationPolicyAbstract.defaultFindHostForVm
(Vm vm) Provides the default implementation of the policy to find a suitable Host for a given VM.VmAllocationPolicyBestFit.defaultFindHostForVm
(Vm vm) Gets the first suitable host from theVmAllocationPolicyAbstract.getHostList()
that has the highest number of PEs in use (i.e.VmAllocationPolicyFirstFit.defaultFindHostForVm
(Vm vm) VmAllocationPolicyRandom.defaultFindHostForVm
(Vm vm) VmAllocationPolicyRoundRobin.defaultFindHostForVm
(Vm vm) VmAllocationPolicySimple.defaultFindHostForVm
(Vm vm) Gets the first suitable host from theVmAllocationPolicyAbstract.getHostList()
that has the fewest number of used PEs (i.e, higher free PEs).VmAllocationPolicy.findHostForVm
(Vm vm) Finds a suitable host that has enough resources to place a given VM.VmAllocationPolicyAbstract.findHostForVm
(Vm vm) VmAllocationPolicy.getOptimizedAllocationMap
(List<? extends Vm> vmList) Gets a map of optimized allocation for VMs according to current utilization and Hosts under and overloaded conditions.VmAllocationPolicyAbstract.getOptimizedAllocationMap
(List<? extends Vm> vmList) Modifier and TypeMethodDescriptionVmAllocationPolicy.allocateHostForVm
(Vm vm, Host host) VmAllocationPolicyAbstract.allocateHostForVm
(Vm vm, Host host) Modifier and TypeMethodDescriptionvoid
VmAllocationPolicy.setFindHostForVmFunction
(BiFunction<VmAllocationPolicy, Vm, Optional<Host>> findHostForVmFunction) Sets aBiFunction
that selects a Host for a given Vm.final void
VmAllocationPolicyAbstract.setFindHostForVmFunction
(BiFunction<VmAllocationPolicy, Vm, Optional<Host>> findHostForVmFunction) Sets aBiFunction
that selects a Host for a given Vm.ModifierConstructorDescriptionVmAllocationPolicyAbstract
(BiFunction<VmAllocationPolicy, Vm, Optional<Host>> findHostForVmFunction) Creates a VmAllocationPolicy, changing theBiFunction
to select a Host for a Vm.VmAllocationPolicySimple
(BiFunction<VmAllocationPolicy, Vm, Optional<Host>> findHostForVmFunction) Instantiates a VmAllocationPolicySimple, changing theFunction
to select a Host for a Vm in order to define a different policy. -
Uses of Host in org.cloudbus.cloudsim.allocationpolicies.migration
Modifier and TypeMethodDescriptionVmAllocationPolicyMigrationAbstract.defaultFindHostForVm
(Vm vm) VmAllocationPolicyMigrationAbstract.findHostForVmInternal
(Vm vm, Predicate<Host> predicate) Applies additional filters to the Hosts Stream and performs the actual Host selection.VmAllocationPolicyMigrationBestFitStaticThreshold.findHostForVmInternal
(Vm vm, Predicate<Host> predicate) Gets the Host having the least available MIPS capacity (max used MIPS).VmAllocationPolicyMigrationFirstFitStaticThreshold.findHostForVmInternal
(Vm vm, Predicate<Host> predicate) Gets the first Host having enough capacity to place the VM.VmAllocationPolicyMigrationWorstFitStaticThreshold.findHostForVmInternal
(Vm vm, Predicate<Host> predicate) Gets the Host having the most available MIPS capacity (min used MIPS).VmAllocationPolicyMigrationAbstract.getOptimizedAllocationMap
(List<? extends Vm> vmList) VmAllocationPolicyMigrationAbstract.getSwitchedOffHosts()
Gets the switched off hosts.Modifier and TypeMethodDescriptiondouble
VmAllocationPolicyMigrationDynamicUpperThreshold.computeHostUtilizationMeasure
(Host host) Computes the measure used to generate the dynamic host over utilization threshold using some statistical method (such as the Median absolute deviation - MAD, InterQuartileRange - IRQ, Local Regression, etc.), depending on the implementing class.protected double
VmAllocationPolicyMigrationAbstract.getMaxUtilizationAfterAllocation
(Host host, Vm vm) Gets the max power consumption of a host after placement of a candidate VM.double
VmAllocationPolicyMigration.getOverUtilizationThreshold
(Host host) Gets the host CPU utilization threshold to detect over utilization.double
VmAllocationPolicyMigrationDynamicUpperThresholdFirstFit.getOverUtilizationThreshold
(Host host) Gets a dynamically computed Host over utilization threshold based on the Host CPU utilization history.double
VmAllocationPolicyMigrationStaticThreshold.getOverUtilizationThreshold
(Host host) Gets the static host CPU utilization threshold to detect over utilization.protected double
VmAllocationPolicyMigrationAbstract.getPowerAfterAllocation
(Host host, Vm vm) Gets the power consumption of a host after the supposed placement of a candidate VM.protected double
VmAllocationPolicyMigrationAbstract.getPowerDifferenceAfterAllocation
(Host host, Vm vm) Gets the power consumption different after the supposed placement of a VM into a given Host and the original Host power consumption.protected double
VmAllocationPolicyMigrationAbstract.getUtilizationOfCpuMips
(Host host) Gets the utilization of the CPU in MIPS for the current potentially allocated VMs.VmAllocationPolicyMigrationAbstract.getVmsToMigrateFromUnderUtilizedHost
(Host host) Gets the VMs to migrate from under utilized host.boolean
VmAllocationPolicyMigration.isHostOverloaded
(Host host) Checks if host is currently over utilized, according the conditions defined by the Allocation Policy.boolean
VmAllocationPolicyMigrationAbstract.isHostOverloaded
(Host host) Checks if host is currently over utilized, according the conditions defined by the Allocation Policy.boolean
VmAllocationPolicyMigrationDynamicUpperThresholdFirstFit.isHostOverloaded
(Host host) Checks if a host is over utilized based on the CPU over utilization threshold computed using the statistical method defined inVmAllocationPolicyMigrationDynamicUpperThreshold.computeHostUtilizationMeasure(Host)
.boolean
VmAllocationPolicyMigration.isHostUnderloaded
(Host host) Checks if host is currently under utilized, according the conditions defined by the Allocation Policy.boolean
VmAllocationPolicyMigrationAbstract.isHostUnderloaded
(Host host) Checks if a host is under utilized, based on current CPU usage.Modifier and TypeMethodDescriptionVmAllocationPolicyMigrationAbstract.findHostForVmInternal
(Vm vm, Predicate<Host> predicate) Applies additional filters to the Hosts Stream and performs the actual Host selection.VmAllocationPolicyMigrationBestFitStaticThreshold.findHostForVmInternal
(Vm vm, Predicate<Host> predicate) Gets the Host having the least available MIPS capacity (max used MIPS).VmAllocationPolicyMigrationFirstFitStaticThreshold.findHostForVmInternal
(Vm vm, Predicate<Host> predicate) Gets the first Host having enough capacity to place the VM.VmAllocationPolicyMigrationWorstFitStaticThreshold.findHostForVmInternal
(Vm vm, Predicate<Host> predicate) Gets the Host having the most available MIPS capacity (min used MIPS).ModifierConstructorDescriptionVmAllocationPolicyMigrationAbstract
(VmSelectionPolicy vmSelectionPolicy, BiFunction<VmAllocationPolicy, Vm, Optional<Host>> findHostForVmFunction) Creates a new VmAllocationPolicy, changing theFunction
to select a Host for a Vm.VmAllocationPolicyMigrationBestFitStaticThreshold
(VmSelectionPolicy vmSelectionPolicy, double overUtilizationThreshold, BiFunction<VmAllocationPolicy, Vm, Optional<Host>> findHostForVmFunction) Creates a new VmAllocationPolicy, changing theFunction
to select a Host for a Vm.VmAllocationPolicyMigrationFirstFitStaticThreshold
(VmSelectionPolicy vmSelectionPolicy, double overUtilizationThreshold, BiFunction<VmAllocationPolicy, Vm, Optional<Host>> findHostForVmFunction) Creates a new VmAllocationPolicy, changing theFunction
to select a Host for a Vm.VmAllocationPolicyMigrationStaticThreshold
(VmSelectionPolicy vmSelectionPolicy, double overUtilizationThreshold, BiFunction<VmAllocationPolicy, Vm, Optional<Host>> findHostForVmFunction) Creates a VmAllocationPolicyMigrationStaticThreshold, changing theFunction
to select a Host for a Vm.VmAllocationPolicyMigrationWorstFitStaticThreshold
(VmSelectionPolicy vmSelectionPolicy, double overUtilizationThreshold, BiFunction<VmAllocationPolicy, Vm, Optional<Host>> findHostForVmFunction) Creates a new VmAllocationPolicy, changing theFunction
to select a Host for a Vm. -
Uses of Host in org.cloudbus.cloudsim.datacenters
Modifier and TypeMethodDescription<T extends Host>
DatacenterDatacenter.addHost
(T host) Physically expands the Datacenter by adding a new Host (physical machine) to it.<T extends Host>
DatacenterDatacenterSimple.addHost
(T host) <T extends Host>
DatacenterDatacenter.addHostList
(List<T> hostList) Physically expands the Datacenter by adding a List of new Hosts (physical machines) to it.<T extends Host>
DatacenterDatacenterSimple.addHostList
(List<T> hostList) Datacenter.getHostList()
Gets an unmodifiable host list.DatacenterSimple.getHostList()
<T extends Host>
DatacenterDatacenter.removeHost
(T host) Removes a Host from its Datacenter.<T extends Host>
DatacenterDatacenterSimple.removeHost
(T host) Modifier and TypeMethodDescriptionDatacenter.getHost
(int index) Gets a Host in a given position inside the Host List.DatacenterSimple.getHost
(int index) Datacenter.getHostById
(long id) Gets a Host from its id.DatacenterSimple.getHostById
(long id) Modifier and TypeMethodDescriptionDatacenter.getActiveHostStream()
Gets aStream
containing the active Hosts inside the Datacenter.DatacenterSimple.getActiveHostStream()
Modifier and TypeMethodDescriptionvoid
Datacenter.requestVmMigration
(Vm sourceVm, Host targetHost) void
DatacenterSimple.requestVmMigration
(Vm sourceVm, Host targetHost) protected long
void
DatacenterSimple.updateActiveHostsNumber
(Host host) Update the number of active Hosts inside the datacenterModifierConstructorDescriptionDatacenterSimple
(Simulation simulation, List<? extends Host> hostList) Creates a Datacenter with an emptystorage
and aVmAllocationPolicySimple
by default.DatacenterSimple
(Simulation simulation, List<? extends Host> hostList, VmAllocationPolicy vmAllocationPolicy) Creates a Datacenter with an emptystorage
.DatacenterSimple
(Simulation simulation, List<? extends Host> hostList, VmAllocationPolicy vmAllocationPolicy, List<SanStorage> storageList) Creates a Datacenter attaching a given storage list to itsstorage
.DatacenterSimple
(Simulation simulation, List<? extends Host> hostList, VmAllocationPolicy vmAllocationPolicy, DatacenterStorage storage) Creates a Datacenter with a givenstorage
. -
Uses of Host in org.cloudbus.cloudsim.hosts
Modifier and TypeClassDescriptionclass
A Host class that implements the most basic features of a Physical Machine (PM) inside aDatacenter
.Modifier and TypeFieldDescriptionstatic final Host
Host.NULL
An attribute that implements the Null Object Design Pattern forHost
objects.Modifier and TypeMethodDescriptionHost.addOnShutdownListener
(EventListener<HostEventInfo> listener) Adds a listener object that will be notified every time the host is powered off.HostSimple.addOnShutdownListener
(EventListener<HostEventInfo> listener) Host.addOnStartupListener
(EventListener<HostEventInfo> listener) Adds a listener object that will be notified every time the host is powered on.HostSimple.addOnStartupListener
(EventListener<HostEventInfo> listener) Adds a listener object that will be notified every time the host updates the processing of all itsVMs
.HostSimple.addOnUpdateProcessingListener
(EventListener<HostUpdatesVmsProcessingEventInfo> listener) Host.setActive
(boolean activate) Requests the Host to be powered on or off.final Host
HostSimple.setActive
(boolean activate) Host.setBwProvisioner
(ResourceProvisioner bwProvisioner) Sets the bandwidth (BW) provisioner with capacity in Megabits/s.final Host
HostSimple.setBwProvisioner
(ResourceProvisioner bwProvisioner) Host.setIdleShutdownDeadline
(double deadline) Sets the deadline to shutdown the Host when it becomes idle.HostSimple.setIdleShutdownDeadline
(double deadline) Host.setLazySuitabilityEvaluation
(boolean lazySuitabilityEvaluation) Defines if the suitability evaluation of this Host for a given Vm is to be performed lazily by methods such asisSuitableForVm(Vm)
.HostSimple.setLazySuitabilityEvaluation
(boolean lazySuitabilityEvaluation) Host.setRamProvisioner
(ResourceProvisioner ramProvisioner) Sets the ram provisioner with capacity in Megabytes.final Host
HostSimple.setRamProvisioner
(ResourceProvisioner ramProvisioner) Host.setSimulation
(Simulation simulation) Sets the CloudSim instance that represents the simulation the Entity belongs Such attribute has to be set by theDatacenter
that the host belongs to.final Host
HostSimple.setSimulation
(Simulation simulation) HostSimple.setStartTime
(double startTime) Host.setVmScheduler
(VmScheduler vmScheduler) Sets the policy for allocation of host PEs to VMs in order to schedule VM execution.final Host
HostSimple.setVmScheduler
(VmScheduler vmScheduler) -
Uses of Host in org.cloudbus.cloudsim.hosts.network
Modifier and TypeClassDescriptionclass
NetworkHost class extendsHostSimple
to support simulation of networked datacenters. -
Uses of Host in org.cloudbus.cloudsim.power.models
Modifier and TypeMethodDescriptionPowerModelHost.getHost()
Gets the Host this PowerModel is collecting power consumption measurements from. -
Uses of Host in org.cloudbus.cloudsim.schedulers.vm
Modifier and TypeMethodDescriptionVmScheduler.getHost()
Gets the host that the VmScheduler get the list of PEs to allocate to VMs.VmSchedulerAbstract.getHost()
Modifier and TypeMethodDescriptionSets the host that the VmScheduler get the list of PEs to allocate to VMs.final VmScheduler
-
Uses of Host in org.cloudbus.cloudsim.selectionpolicies
Modifier and TypeMethodDescriptionVmSelectionPolicy.getVmToMigrate
(Host host) Gets a VM to migrate from a given host.VmSelectionPolicyMinimumMigrationTime.getVmToMigrate
(Host host) VmSelectionPolicyMinimumUtilization.getVmToMigrate
(Host host) VmSelectionPolicyRandomSelection.getVmToMigrate
(Host host) -
Uses of Host in org.cloudbus.cloudsim.vms
Modifier and TypeMethodDescriptionVm.getHost()
Gets theHost
where the Vm is or will be placed.VmSimple.getHost()
Modifier and TypeMethodDescriptionvoid
Vm.notifyOnHostDeallocationListeners
(Host deallocatedHost) void
VmSimple.notifyOnHostDeallocationListeners
(Host deallocatedHost) Sets the PM that hosts the VM.void
VmSimple.updateMigrationFinishListeners
(Host targetHost) Notifies the listeners when the VM finishes migration to a target Host.void
VmSimple.updateMigrationStartListeners
(Host targetHost) Notifies the listeners when the VM starts migration to a target Host.ModifierConstructorDescriptionHostResourceStats
(Host machine, Function<Host, Double> resourceUtilizationFunction) Creates a HostResourceStats to collect resource utilization statistics for a Host.ModifierConstructorDescriptionHostResourceStats
(Host machine, Function<Host, Double> resourceUtilizationFunction) Creates a HostResourceStats to collect resource utilization statistics for a Host. -
Uses of Host in org.cloudbus.cloudsim.vms.network
-
Uses of Host in org.cloudsimplus.builders
Modifier and TypeMethodDescriptionDatacenterBuilder.getFirstHostFromFirstDatacenter()
SimulationScenarioBuilder.getFirstHostFromFirstDatacenter()
DatacenterBuilder.getHostOfDatacenter
(int hostIndex, int datacenterIndex) SimulationScenarioBuilder.getHostOfDatacenter
(int hostIndex, int datacenterIndex) Modifier and TypeMethodDescriptionvoid
DatacenterBuilder.setDatacenterCreationFunction
(Function<List<Host>, Datacenter> datacenterCreationFunction) Sets aFunction
used to create Datacenters.void
HostBuilder.setHostCreationFunction
(Function<List<Pe>, Host> hostCreationFunction) Sets aFunction
used to create Hosts. -
Uses of Host in org.cloudsimplus.builders.tables
ModifierConstructorDescriptionHostHistoryTableBuilder
(Host host) Instantiates a builder to print the history of a Host using the a defaultTextTable
. -
Uses of Host in org.cloudsimplus.faultinjection
Modifier and TypeMethodDescriptionHostFaultInjection.getLastFailedHost()
Gets the last Host for which a failure was injected.Modifier and TypeMethodDescriptionvoid
HostFaultInjection.generateHostFault
(Host host) Generates a fault for all PEs of a Host.void
HostFaultInjection.generateHostFault
(Host host, int pesFailures) Generates a fault for a given number of random PEs of a Host. -
Uses of Host in org.cloudsimplus.listeners
Modifier and TypeMethodDescriptionHostEventInfo.getHost()
Gets theHost
for which the event happened.Modifier and TypeMethodDescriptionstatic HostEventInfo
HostEventInfo.of
(EventListener<? extends EventInfo> listener, Host host, double time) Gets a EventInfo instance from the given parameters.HostUpdatesVmsProcessingEventInfo.of
(EventListener<HostUpdatesVmsProcessingEventInfo> listener, Host host, double nextCloudletCompletionTime) Gets aHostUpdatesVmsProcessingEventInfo
instance from the given parameters.static VmHostEventInfo
VmHostEventInfo.of
(EventListener<VmHostEventInfo> listener, Vm vm, Host host) Gets a VmHostEventInfo instance from the given parameters. -
Uses of Host in org.cloudsimplus.testbeds
-
Uses of Host in org.cloudsimplus.traces.google
Modifier and TypeMethodDescriptionGoogleMachineEventsTraceReader.process()
Process thetrace file
creating a Set ofHost
s described in the file.Modifier and TypeMethodDescriptionGoogleMachineEventsTraceReader.getInstance
(String filePath, Function<MachineEvent, Host> hostCreationFunction) Gets aGoogleMachineEventsTraceReader
instance to read a "machine events" trace file inside the application's resource directory.void
GoogleMachineEventsTraceReader.setHostCreationFunction
(Function<MachineEvent, Host> hostCreationFunction) Sets aBiFunction
that will be called for everyHost
to be created from a line inside the trace file.ModifierConstructorDescriptionGoogleMachineEventsTraceReader
(String filePath, Function<MachineEvent, Host> hostCreationFunction) Instantiates a GoogleMachineEventsTraceReader to read a "machine events" trace file.