Uses of Interface
org.cloudbus.cloudsim.datacenters.Datacenter
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
DatacenterBroker
classes that act on behalf of a cloud customer,
attending his/her requests for creation and destruction of
Cloudlets
and
VMs
, assigning such Cloudlets to specific VMs.Provides core classes used just internally by CloudSim Plus,
except the
CloudSim
class that is the
start point and main class used to run simulations.Provides
Datacenter
implementations,
that represents a physical Cloud Datacenter and contains a set of
Host
that together provide the basic cloud infrastructure.Provides network-enabled
Datacenter
implementations.Provides
Host
implementations
that represent a Physical Machine (PM) is used to run Vm
from different cloud customers
(represented by a DatacenterBroker
).Provides classes and interfaces for modeling how physical or virtual elements
consume power.
Provides classes that represent different physical and logical
Resource
used by simulation
objects such as Hosts and VMs.Provides implementations of Virtual Machines (
Vm
)
which are a software package that emulate the architecture of a physical machine.Provides
Builder
classes that
implement the Builder Design Pattern
to allow instantiating multiple simulation objects more easily.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 Datacenter in org.cloudbus.cloudsim.allocationpolicies
Modifier and TypeMethodDescriptionVmAllocationPolicy.getDatacenter()
Gets theDatacenter
associated to the VmAllocationPolicy.VmAllocationPolicyAbstract.getDatacenter()
Modifier and TypeMethodDescriptionvoid
VmAllocationPolicy.setDatacenter
(Datacenter datacenter) Sets the Datacenter associated to the VmAllocationPolicyfinal void
VmAllocationPolicyAbstract.setDatacenter
(Datacenter datacenter) Sets the Datacenter associated to the Allocation Policy -
Uses of Datacenter in org.cloudbus.cloudsim.brokers
Modifier and TypeMethodDescriptionprotected Datacenter
DatacenterBrokerAbstract.closestDatacenterMapper
(Datacenter lastDatacenter, Vm vm) The policy used to select the closest Datacenter to run eachwaiting VM
, according to their timezone offset.protected abstract Datacenter
DatacenterBrokerAbstract.defaultDatacenterMapper
(Datacenter lastDatacenter, Vm vm) The default policy used to select a Datacenter to runwaiting VMs
.protected Datacenter
DatacenterBrokerSimple.defaultDatacenterMapper
(Datacenter lastDatacenter, Vm vm) The default policy used to select a Datacenter to runwaiting VMs
.protected Datacenter
DatacenterBrokerAbstract.getDatacenter
(Vm vm) Gets the Datacenter where a VM is placed.Modifier and TypeMethodDescriptionprotected List<Datacenter>
DatacenterBrokerAbstract.getDatacenterList()
Gets the list of available datacenters.Modifier and TypeMethodDescriptionprotected Datacenter
DatacenterBrokerAbstract.closestDatacenterMapper
(Datacenter lastDatacenter, Vm vm) The policy used to select the closest Datacenter to run eachwaiting VM
, according to their timezone offset.protected abstract Datacenter
DatacenterBrokerAbstract.defaultDatacenterMapper
(Datacenter lastDatacenter, Vm vm) The default policy used to select a Datacenter to runwaiting VMs
.protected Datacenter
DatacenterBrokerSimple.defaultDatacenterMapper
(Datacenter lastDatacenter, Vm vm) The default policy used to select a Datacenter to runwaiting VMs
.Modifier and TypeMethodDescriptionDatacenterBroker.setDatacenterMapper
(BiFunction<Datacenter, Vm, Datacenter> datacenterMapper) Sets theBiFunction
that selects and returns a Datacenter to place submitted VMs.DatacenterBroker.setDatacenterMapper
(BiFunction<Datacenter, Vm, Datacenter> datacenterMapper) Sets theBiFunction
that selects and returns a Datacenter to place submitted VMs.final DatacenterBroker
DatacenterBrokerAbstract.setDatacenterMapper
(BiFunction<Datacenter, Vm, Datacenter> datacenterMapper) final DatacenterBroker
DatacenterBrokerAbstract.setDatacenterMapper
(BiFunction<Datacenter, Vm, Datacenter> datacenterMapper) -
Uses of Datacenter in org.cloudbus.cloudsim.cloudlets
Modifier and TypeMethodDescriptionvoid
Cloudlet.assignToDatacenter
(Datacenter datacenter) Sets the parameters of the Datacenter where the Cloudlet is going to be executed.void
CloudletAbstract.assignToDatacenter
(Datacenter datacenter) protected double
CloudletAbstract.getActualCpuTime
(Datacenter datacenter) Gets the total execution time of this Cloudlet in a given Datacenter ID.double
Cloudlet.getArrivalTime
(Datacenter datacenter) Gets the arrival time of this Cloudlet in the given Datacenter (in seconds).double
CloudletAbstract.getArrivalTime
(Datacenter datacenter) double
Cloudlet.getCostPerSec
(Datacenter datacenter) Gets the cost ($) running this Cloudlet in a given Datacenter.double
CloudletAbstract.getCostPerSec
(Datacenter datacenter) long
Cloudlet.getFinishedLengthSoFar
(Datacenter datacenter) Gets the length of this Cloudlet that has been executed so far (in MI), according to theCloudlet.getLength()
.long
CloudletAbstract.getFinishedLengthSoFar
(Datacenter datacenter) protected double
CloudletAbstract.getWallClockTime
(Datacenter datacenter) Gets the time of this Cloudlet resides in a given Datacenter (from arrival time until departure time). -
Uses of Datacenter in org.cloudbus.cloudsim.core
Modifier and TypeMethodDescriptionCustomerEntity.getLastTriedDatacenter()
Gets the last Datacenter where entity was tried to be created.CustomerEntityAbstract.getLastTriedDatacenter()
Modifier and TypeMethodDescriptionCloudInformationService.getDatacenterList()
Gets the list of all registered Datacenters.Modifier and TypeMethodDescriptionvoid
CustomerEntity.setLastTriedDatacenter
(Datacenter lastTriedDatacenter) Sets the last Datacenter where entity was tried to be created.void
CustomerEntityAbstract.setLastTriedDatacenter
(Datacenter lastTriedDatacenter) -
Uses of Datacenter in org.cloudbus.cloudsim.datacenters
Modifier and TypeClassDescriptionclass
Implements the basic features of a Virtualized Cloud Datacenter.Modifier and TypeFieldDescriptionstatic final Datacenter
Datacenter.NULL
A property that implements the Null Object Design Pattern forDatacenter
objects.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.addOnHostAvailableListener
(EventListener<HostEventInfo> listener) Adds aEventListener
object that will be notified every time a new Host is available for the Datacenter during simulation runtime.DatacenterSimple.addOnHostAvailableListener
(EventListener<HostEventInfo> listener) Datacenter.addOnVmMigrationFinishListener
(EventListener<DatacenterVmMigrationEventInfo> listener) Adds aEventListener
object that will be notified every time a VM migration is finished either successfully or not.DatacenterSimple.addOnVmMigrationFinishListener
(EventListener<DatacenterVmMigrationEventInfo> listener) static Datacenter
TimeZoned.closestDatacenter
(Vm vm, List<Datacenter> datacenters) Selects theDatacenter
closest to a givenVm
, based on their timezone.Datacenter.disableMigrations()
Disable VM migrations.final Datacenter
DatacenterSimple.disableMigrations()
Datacenter.enableMigrations()
Enable VM migrations.final Datacenter
DatacenterSimple.enableMigrations()
DatacenterCharacteristics.getDatacenter()
Gets theDatacenter
that owns these characteristicsDatacenterCharacteristicsSimple.getDatacenter()
<T extends Host>
DatacenterDatacenter.removeHost
(T host) Removes a Host from its Datacenter.<T extends Host>
DatacenterDatacenterSimple.removeHost
(T host) Datacenter.setHostSearchRetryDelay
(double delay) Sets the time interval before trying to find suitable Hosts to migrate VMs from an under or overload Host again.DatacenterSimple.setHostSearchRetryDelay
(double delay) Datacenter.setSchedulingInterval
(double schedulingInterval) Sets the scheduling delay to process each event received by the Datacenter (in seconds).final Datacenter
DatacenterSimple.setSchedulingInterval
(double schedulingInterval) final Datacenter
DatacenterSimple.setTimeZone
(double timeZone) final Datacenter
DatacenterSimple.setVmAllocationPolicy
(VmAllocationPolicy vmAllocationPolicy) Sets the policy to be used by the Datacenter to allocate VMs into hosts.Modifier and TypeMethodDescriptionstatic Datacenter
TimeZoned.closestDatacenter
(Vm vm, List<Datacenter> datacenters) Selects theDatacenter
closest to a givenVm
, based on their timezone. -
Uses of Datacenter in org.cloudbus.cloudsim.datacenters.network
Modifier and TypeClassDescriptionclass
NetworkDatacenter class is aDatacenter
whose hosts have network support. -
Uses of Datacenter in org.cloudbus.cloudsim.hosts
Modifier and TypeMethodDescriptionHost.getDatacenter()
Gets the Datacenter where the host is placed.HostSimple.getDatacenter()
Modifier and TypeMethodDescriptionvoid
Host.setDatacenter
(Datacenter datacenter) Sets the Datacenter where the host is placed.final void
HostSimple.setDatacenter
(Datacenter datacenter) -
Uses of Datacenter in org.cloudbus.cloudsim.power.models
Modifier and TypeMethodDescriptionPowerModelDatacenter.getDatacenter()
Gets the Datacenter this PowerModel is collecting power consumption measurements from.Modifier and TypeMethodDescriptionfinal void
PowerModelDatacenter.setDatacenter
(Datacenter datacenter) Sets the Datacenter this PowerModel will collect power consumption measurements from.ModifierConstructorDescriptionPowerModelDatacenterSimple
(Datacenter datacenter) Instantiates a PowerModelDatacenterSimple for a given Datacenter, defining the Power Usage Effectiveness (PUE) as 1 (100%). -
Uses of Datacenter in org.cloudbus.cloudsim.resources
Modifier and TypeMethodDescriptionDatacenterStorage.getDatacenter()
File.getDatacenter()
Gets the Datacenter that stores the file.Modifier and TypeMethodDescriptionvoid
DatacenterStorage.setDatacenter
(Datacenter datacenter) final File
File.setDatacenter
(Datacenter datacenter) Sets the Datacenter that will store the file. -
Uses of Datacenter in org.cloudbus.cloudsim.vms
Modifier and TypeMethodDescriptionvoid
Vm.notifyOnCreationFailureListeners
(Datacenter failedDatacenter) Notifies all registered listeners when the Vm fail in being placed for lack of aHost
with enough resources in a specificDatacenter
.void
VmSimple.notifyOnCreationFailureListeners
(Datacenter failedDatacenter) -
Uses of Datacenter in org.cloudsimplus.builders
Modifier and TypeMethodDescriptionvoid
DatacenterBuilder.setDatacenterCreationFunction
(Function<List<Host>, Datacenter> datacenterCreationFunction) Sets aFunction
used to create Datacenters. -
Uses of Datacenter in org.cloudsimplus.faultinjection
Modifier and TypeMethodDescriptionHostFaultInjection.getDatacenter()
Gets the datacenter in which failures will be injected.Modifier and TypeMethodDescriptionprotected final void
HostFaultInjection.setDatacenter
(Datacenter datacenter) Sets the datacenter in which failures will be injected.ModifierConstructorDescriptionHostFaultInjection
(Datacenter datacenter) Creates a fault injection mechanism for the Hosts of a givenDatacenter
.HostFaultInjection
(Datacenter datacenter, StatisticalDistribution faultArrivalHoursGenerator) Creates a fault injection mechanism for the Hosts of a givenDatacenter
. -
Uses of Datacenter in org.cloudsimplus.listeners
Modifier and TypeMethodDescriptionDatacenterEventInfo.getDatacenter()
Gets theDatacenter
for which the event happened.DatacenterVmMigrationEventInfo.getDatacenter()
Modifier and TypeMethodDescriptionstatic VmDatacenterEventInfo
VmDatacenterEventInfo.of
(EventListener<VmDatacenterEventInfo> listener, Vm vm, Datacenter datacenter) Gets a VmDatacenterEventInfo instance from the given parameters. -
Uses of Datacenter in org.cloudsimplus.testbeds
Modifier and TypeMethodDescriptionprotected Datacenter
Experiment.createDatacenter
(int index) Creates a datacenter using aVmAllocationPolicy
supplied by theExperiment.vmAllocationPolicySupplier
. -
Uses of Datacenter in org.cloudsimplus.traces.google
Modifier and TypeMethodDescriptionGoogleMachineEventsTraceReader.getDatacenterForLaterHosts()
Gets the Datacenter where the Hosts with timestamp greater than 0 will be created.Modifier and TypeMethodDescriptionvoid
GoogleMachineEventsTraceReader.setDatacenterForLaterHosts
(Datacenter datacenterForLaterHosts)