Uses of Interface
org.cloudbus.cloudsim.hosts.Host
Package | Description |
---|---|
org.cloudbus.cloudsim.allocationpolicies |
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. |
org.cloudbus.cloudsim.allocationpolicies.migration |
Provides
VmAllocationPolicy implementations
that enables VM migration. |
org.cloudbus.cloudsim.datacenters |
Provides
Datacenter implementations,
that represents a physical Cloud Datacenter and contains a set of
Host that together provide the basic cloud infrastructure. |
org.cloudbus.cloudsim.datacenters.network |
Provides network-enabled
Datacenter implementations. |
org.cloudbus.cloudsim.hosts |
Provides
Host implementations
that represent a Physical Machine (PM) is used to run Vm
from different cloud customers
(represented by a DatacenterBroker ). |
org.cloudbus.cloudsim.hosts.network |
Provides network-enabled
Host implementations. |
org.cloudbus.cloudsim.power.models | |
org.cloudbus.cloudsim.schedulers.vm |
Provides
VmScheduler
implementations that are used to schedule the execution of multiple
Vm inside a given
Host . |
org.cloudbus.cloudsim.selectionpolicies |
Provides
VmSelectionPolicy
implementations that define policies to be used by a Host
to select a Vm to migrate from a list of VMs. |
org.cloudbus.cloudsim.vms |
Provides implementations of Virtual Machines (
Vm )
which are a software package that emulate the architecture of a physical machine. |
org.cloudsimplus.builders |
Provides
Builder classes that
implement the Builder Design Pattern
to allow instantiating multiple simulation objects more easily. |
org.cloudsimplus.builders.tables |
Provides
Table classes
that are used to format simulation results in different and structured ways such as
ASCII, CSV or HTML tables. |
org.cloudsimplus.faultinjection |
Provides classes to inject random faults during simulation runtime.
|
org.cloudsimplus.listeners |
Provides
EventListener
implementations to enable event notifications during simulation execution. |
org.cloudsimplus.testbeds |
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.
|
org.cloudsimplus.traces.google |
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
Methods in org.cloudbus.cloudsim.allocationpolicies with type parameters of type Host Modifier and Type Method Description <T extends Host>
List<T>VmAllocationPolicy. getHostList()
Gets the list of Hosts available in aDatacenter
, that will be used by the Allocation Policy to place VMs.<T extends Host>
List<T>VmAllocationPolicyAbstract. getHostList()
Methods in org.cloudbus.cloudsim.allocationpolicies that return types with arguments of type Host Modifier and Type Method Description protected abstract Optional<Host>
VmAllocationPolicyAbstract. defaultFindHostForVm(Vm vm)
Provides the default implementation of the policy to find a suitable Host for a given VM.protected Optional<Host>
VmAllocationPolicyBestFit. defaultFindHostForVm(Vm vm)
Gets the first suitable host from theVmAllocationPolicyAbstract.getHostList()
that has the most number of PEs in use (i.e.protected Optional<Host>
VmAllocationPolicyFirstFit. defaultFindHostForVm(Vm vm)
protected Optional<Host>
VmAllocationPolicyRandom. defaultFindHostForVm(Vm vm)
protected Optional<Host>
VmAllocationPolicyRoundRobin. defaultFindHostForVm(Vm vm)
protected Optional<Host>
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).protected Optional<Host>
VmAllocationPolicyWorstFit. defaultFindHostForVm(Vm vm)
Gets the first suitable host from theVmAllocationPolicyAbstract.getHostList()
that has the least number of PEs in use (i.e.Optional<Host>
VmAllocationPolicy. findHostForVm(Vm vm)
Finds a suitable host that has enough resources to place a given VM.Optional<Host>
VmAllocationPolicyAbstract. findHostForVm(Vm vm)
Map<Vm,Host>
VmAllocationPolicy. getOptimizedAllocationMap(List<? extends Vm> vmList)
Gets a map of optimized allocation for VMs according to current utilization and Hosts under and overloaded conditions.Map<Vm,Host>
VmAllocationPolicyAbstract. getOptimizedAllocationMap(List<? extends Vm> vmList)
Gets a map of optimized allocation for VMs according to current utilization and Hosts under and overloaded conditions.Methods in org.cloudbus.cloudsim.allocationpolicies with parameters of type Host Modifier and Type Method Description boolean
VmAllocationPolicy. allocateHostForVm(Vm vm, Host host)
boolean
VmAllocationPolicyAbstract. allocateHostForVm(Vm vm, Host host)
Method parameters in org.cloudbus.cloudsim.allocationpolicies with type arguments of type Host Modifier and Type Method Description void
VmAllocationPolicy. setFindHostForVmFunction(BiFunction<VmAllocationPolicy,Vm,Optional<Host>> findHostForVmFunction)
Sets aBiFunction
that selects a Host for a given Vm.void
VmAllocationPolicyAbstract. setFindHostForVmFunction(BiFunction<VmAllocationPolicy,Vm,Optional<Host>> findHostForVmFunction)
Sets aBiFunction
that selects a Host for a given Vm.Constructor parameters in org.cloudbus.cloudsim.allocationpolicies with type arguments of type Host Constructor Description VmAllocationPolicyAbstract(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
Methods in org.cloudbus.cloudsim.allocationpolicies.migration that return types with arguments of type Host Modifier and Type Method Description protected Optional<Host>
VmAllocationPolicyMigrationAbstract. defaultFindHostForVm(Vm vm)
protected Optional<Host>
VmAllocationPolicyMigrationAbstract. findHostForVmInternal(Vm vm, Stream<Host> hostStream)
Applies additional filters to the Hosts Stream and performs the actual Host selection.protected Optional<Host>
VmAllocationPolicyMigrationBestFitStaticThreshold. findHostForVmInternal(Vm vm, Stream<Host> hostStream)
Gets the Host having the least available MIPS capacity (max used MIPS).protected Optional<Host>
VmAllocationPolicyMigrationWorstFitStaticThreshold. findHostForVmInternal(Vm vm, Stream<Host> hostStream)
Gets the Host having the most available MIPS capacity (min used MIPS).Map<Vm,Host>
VmAllocationPolicyMigrationAbstract. getOptimizedAllocationMap(List<? extends Vm> vmList)
protected List<Host>
VmAllocationPolicyMigrationAbstract. getSwitchedOffHosts()
Gets the switched off hosts.Methods in org.cloudbus.cloudsim.allocationpolicies.migration with parameters of type Host Modifier and Type Method Description double
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.protected List<? extends Vm>
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 the conditions defined by the Allocation Policy.boolean
VmAllocationPolicyMigrationAbstract. isHostOverloaded(Host host)
Checks if host is currently over utilized, according the 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 the conditions defined by the Allocation Policy.boolean
VmAllocationPolicyMigrationAbstract. isHostUnderloaded(Host host)
Checks if a host is under utilized, based on current CPU usage.Method parameters in org.cloudbus.cloudsim.allocationpolicies.migration with type arguments of type Host Modifier and Type Method Description protected Optional<Host>
VmAllocationPolicyMigrationAbstract. findHostForVmInternal(Vm vm, Stream<Host> hostStream)
Applies additional filters to the Hosts Stream and performs the actual Host selection.protected Optional<Host>
VmAllocationPolicyMigrationBestFitStaticThreshold. findHostForVmInternal(Vm vm, Stream<Host> hostStream)
Gets the Host having the least available MIPS capacity (max used MIPS).protected Optional<Host>
VmAllocationPolicyMigrationWorstFitStaticThreshold. findHostForVmInternal(Vm vm, Stream<Host> hostStream)
Gets the Host having the most available MIPS capacity (min used MIPS).Constructor parameters in org.cloudbus.cloudsim.allocationpolicies.migration with type arguments of type Host Constructor Description VmAllocationPolicyMigrationAbstract(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.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
Methods in org.cloudbus.cloudsim.datacenters with type parameters of type Host Modifier and Type Method Description <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)
<T extends Host>
List<T>Datacenter. getHostList()
Gets an unmodifiable host list.<T extends Host>
List<T>DatacenterSimple. getHostList()
<T extends Host>
DatacenterDatacenter. removeHost(T host)
Removes a Host from its Datacenter.<T extends Host>
DatacenterDatacenterSimple. removeHost(T host)
Methods in org.cloudbus.cloudsim.datacenters that return Host Modifier and Type Method Description Host
Datacenter. getHost(int index)
Gets a Host in a given position inside the Host List.Host
DatacenterSimple. getHost(int index)
Host
Datacenter. getHostById(long id)
Gets a Host from its id.Host
DatacenterSimple. getHostById(long id)
Methods in org.cloudbus.cloudsim.datacenters that return types with arguments of type Host Modifier and Type Method Description Stream<? extends Host>
Datacenter. getActiveHostStream()
Gets aStream
containing the active Hosts inside the Datacenter.Stream<? extends Host>
DatacenterSimple. getActiveHostStream()
Methods in org.cloudbus.cloudsim.datacenters with parameters of type Host Modifier and Type Method Description void
Datacenter. requestVmMigration(Vm sourceVm, Host targetHost)
void
DatacenterSimple. requestVmMigration(Vm sourceVm, Host targetHost)
Constructor parameters in org.cloudbus.cloudsim.datacenters with type arguments of type Host Constructor Description DatacenterSimple(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<FileStorage> 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.datacenters.network
Constructor parameters in org.cloudbus.cloudsim.datacenters.network with type arguments of type Host Constructor Description NetworkDatacenter(Simulation simulation, List<? extends Host> hostList, VmAllocationPolicy vmAllocationPolicy)
Creates a NetworkDatacenter with the given parameters. -
Uses of Host in org.cloudbus.cloudsim.hosts
Classes in org.cloudbus.cloudsim.hosts that implement Host Modifier and Type Class Description class
HostSimple
A Host class that implements the most basic features of a Physical Machine (PM) inside aDatacenter
.Fields in org.cloudbus.cloudsim.hosts declared as Host Modifier and Type Field Description static Host
Host. NULL
An attribute that implements the Null Object Design Pattern forHost
objects.Methods in org.cloudbus.cloudsim.hosts that return Host Modifier and Type Method Description Host
Host. addOnShutdownListener(EventListener<HostEventInfo> listener)
Adds a listener object that will be notified every time the host is powered off.Host
HostSimple. addOnShutdownListener(EventListener<HostEventInfo> listener)
Host
Host. addOnStartupListener(EventListener<HostEventInfo> listener)
Adds a listener object that will be notified every time the host is powered on.Host
HostSimple. addOnStartupListener(EventListener<HostEventInfo> listener)
Host
Host. addOnUpdateProcessingListener(EventListener<HostUpdatesVmsProcessingEventInfo> listener)
Adds a listener object that will be notified every time the host updates the processing of all itsVMs
.Host
HostSimple. addOnUpdateProcessingListener(EventListener<HostUpdatesVmsProcessingEventInfo> listener)
Host
Host. setActive(boolean activate)
Sets the powered state of the Host, to indicate if it's powered on or off.Host
HostSimple. setActive(boolean activate)
Host
Host. setBwProvisioner(ResourceProvisioner bwProvisioner)
Sets the bandwidth (BW) provisioner with capacity in Megabits/s.Host
HostSimple. setBwProvisioner(ResourceProvisioner bwProvisioner)
Host
Host. setIdleShutdownDeadline(double deadline)
Sets the deadline to shutdown the Host when it become idle.Host
HostSimple. setIdleShutdownDeadline(double deadline)
Host
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)
.Host
HostSimple. setLazySuitabilityEvaluation(boolean lazySuitabilityEvaluation)
Host
Host. setRamProvisioner(ResourceProvisioner ramProvisioner)
Sets the ram provisioner with capacity in Megabytes.Host
HostSimple. setRamProvisioner(ResourceProvisioner ramProvisioner)
Host
Host. setSimulation(Simulation simulation)
Sets the CloudSim instance that represents the simulation the Entity is related to.Host
HostSimple. setSimulation(Simulation simulation)
Host
Host. setVmScheduler(VmScheduler vmScheduler)
Sets the policy for allocation of host PEs to VMs in order to schedule VM execution.Host
HostSimple. setVmScheduler(VmScheduler vmScheduler)
Methods in org.cloudbus.cloudsim.hosts with parameters of type Host Modifier and Type Method Description int
HostSimple. compareTo(Host o)
Compare this Host with another one based onHostSimple.getTotalMipsCapacity()
. -
Uses of Host in org.cloudbus.cloudsim.hosts.network
Classes in org.cloudbus.cloudsim.hosts.network that implement Host Modifier and Type Class Description class
NetworkHost
NetworkHost class extendsHostSimple
to support simulation of networked datacenters. -
Uses of Host in org.cloudbus.cloudsim.power.models
Methods in org.cloudbus.cloudsim.power.models that return Host Modifier and Type Method Description Host
PowerModelHost. getHost()
Gets the Host this PowerModel is collecting power consumption measurements from.Methods in org.cloudbus.cloudsim.power.models with parameters of type Host Modifier and Type Method Description void
PowerModelHost. setHost(Host host)
Sets the Host this PowerModel will collect power consumption measurements from. -
Uses of Host in org.cloudbus.cloudsim.schedulers.vm
Methods in org.cloudbus.cloudsim.schedulers.vm that return Host Modifier and Type Method Description Host
VmScheduler. getHost()
Gets the host that the VmScheduler get the list of PEs to allocate to VMs.Host
VmSchedulerAbstract. getHost()
Methods in org.cloudbus.cloudsim.schedulers.vm with parameters of type Host Modifier and Type Method Description VmScheduler
VmScheduler. setHost(Host host)
Sets the host that the VmScheduler get the list of PEs to allocate to VMs.VmScheduler
VmSchedulerAbstract. setHost(Host host)
-
Uses of Host in org.cloudbus.cloudsim.selectionpolicies
Methods in org.cloudbus.cloudsim.selectionpolicies with parameters of type Host Modifier and Type Method Description Vm
VmSelectionPolicy. getVmToMigrate(Host host)
Gets a VM to migrate from a given host.Vm
VmSelectionPolicyMinimumMigrationTime. getVmToMigrate(Host host)
Vm
VmSelectionPolicyMinimumUtilization. getVmToMigrate(Host host)
Vm
VmSelectionPolicyRandomSelection. getVmToMigrate(Host host)
-
Uses of Host in org.cloudbus.cloudsim.vms
Methods in org.cloudbus.cloudsim.vms that return Host Modifier and Type Method Description Host
Vm. getHost()
Gets theHost
where the Vm is or will be placed.Host
VmSimple. getHost()
Methods in org.cloudbus.cloudsim.vms with parameters of type Host Modifier and Type Method Description void
Vm. notifyOnHostDeallocationListeners(Host deallocatedHost)
void
VmSimple. notifyOnHostDeallocationListeners(Host deallocatedHost)
void
Vm. setHost(Host host)
Sets the PM that hosts the VM.void
VmSimple. setHost(Host host)
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.Constructors in org.cloudbus.cloudsim.vms with parameters of type Host Constructor Description HostResourceStats(Host machine, Function<Host,Double> resourceUtilizationFunction)
Creates a HostResourceStats to collect resource utilization statistics for a Host.Constructor parameters in org.cloudbus.cloudsim.vms with type arguments of type Host Constructor Description HostResourceStats(Host machine, Function<Host,Double> resourceUtilizationFunction)
Creates a HostResourceStats to collect resource utilization statistics for a Host. -
Uses of Host in org.cloudsimplus.builders
Methods in org.cloudsimplus.builders that return Host Modifier and Type Method Description Host
DatacenterBuilder. getFirstHostFromFirstDatacenter()
Host
SimulationScenarioBuilder. getFirstHostFromFirstDatacenter()
Host
DatacenterBuilder. getHostOfDatacenter(int hostIndex, int datacenterIndex)
Host
SimulationScenarioBuilder. getHostOfDatacenter(int hostIndex, int datacenterIndex)
Methods in org.cloudsimplus.builders that return types with arguments of type Host Modifier and Type Method Description List<Host>
HostBuilder. getHosts()
Gets the list of all created Hosts.Method parameters in org.cloudsimplus.builders with type arguments of type Host Modifier and Type Method Description DatacenterBuilder
DatacenterBuilder. create(List<Host> hosts)
void
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
Constructors in org.cloudsimplus.builders.tables with parameters of type Host Constructor Description HostHistoryTableBuilder(Host host)
Instantiates a builder to print the history of a Host using the a defaultTextTable
.HostHistoryTableBuilder(Host host, Table table)
Instantiates a builder to print the history of a Host using the a givenTable
. -
Uses of Host in org.cloudsimplus.faultinjection
Methods in org.cloudsimplus.faultinjection that return Host Modifier and Type Method Description Host
HostFaultInjection. getLastFailedHost()
Gets the last Host for which a failure was injected.Methods in org.cloudsimplus.faultinjection with parameters of type Host Modifier and Type Method Description void
HostFaultInjection. generateHostFault(Host host)
Generates a fault for all PEs of a Host.void
HostFaultInjection. generateHostFault(Host host, int numberOfPesToFail)
Generates a fault for a given number of random PEs of a Host. -
Uses of Host in org.cloudsimplus.listeners
Methods in org.cloudsimplus.listeners that return Host Modifier and Type Method Description Host
HostEventInfo. getHost()
Gets theHost
for which the event happened.Methods in org.cloudsimplus.listeners with parameters of type Host Modifier and Type Method Description static HostEventInfo
HostEventInfo. of(EventListener<? extends EventInfo> listener, Host host, double time)
Gets a EventInfo instance from the given parameters.static HostUpdatesVmsProcessingEventInfo
HostUpdatesVmsProcessingEventInfo. of(EventListener<? extends EventInfo> 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
Methods in org.cloudsimplus.testbeds that return Host Modifier and Type Method Description protected abstract Host
Experiment. createHost(int id)
Methods in org.cloudsimplus.testbeds that return types with arguments of type Host Modifier and Type Method Description protected List<Host>
Experiment. createHosts()
-
Uses of Host in org.cloudsimplus.traces.google
Methods in org.cloudsimplus.traces.google that return Host Modifier and Type Method Description protected Host
GoogleMachineEventsTraceReader. createHostFromTraceLine()
Creates a Host instance from thelast parsed line
, using the givenhost create function
.Methods in org.cloudsimplus.traces.google that return types with arguments of type Host Modifier and Type Method Description Set<Host>
GoogleMachineEventsTraceReader. process()
Process thetrace file
creating a Set ofHost
s described in the file.Methods in org.cloudsimplus.traces.google with parameters of type Host Modifier and Type Method Description protected boolean
GoogleMachineEventsTraceReader. addHostToRemovalList(Host host)
Adds a Host to the List of Hosts to be removed from the Datacenter.protected boolean
GoogleMachineEventsTraceReader. addLaterAvailableHost(Host host)
Adds a Host that will become available for the Datacenter just at the time specified by the timestamp in the trace line, which is set as the hoststartup time
.Method parameters in org.cloudsimplus.traces.google with type arguments of type Host Modifier and Type Method Description static GoogleMachineEventsTraceReader
GoogleMachineEventsTraceReader. 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.Constructor parameters in org.cloudsimplus.traces.google with type arguments of type Host Constructor Description GoogleMachineEventsTraceReader(String filePath, Function<MachineEvent,Host> hostCreationFunction)
Instantiates a GoogleMachineEventsTraceReader to read a "machine events" trace file.