Class HostSimple
java.lang.Object
org.cloudsimplus.core.StartableAbstract
org.cloudsimplus.core.ExecDelayableAbstract
org.cloudsimplus.hosts.HostAbstract
org.cloudsimplus.hosts.HostSimple
- All Implemented Interfaces:
Comparable<Host>,ChangeableId,ExecDelayable,Identifiable,Machine<FileStorage>,PhysicalMachine,ResourceStatsComputer<HostResourceStats>,Startable,Host,PowerAware<PowerModelHost>,Resourceful
- Direct Known Subclasses:
NetworkHost
A Host class that implements the most basic features of a Physical Machine
(PM) inside a
Datacenter. It executes actions related to the management
of virtual machines (e.g., creation and destruction). A Host has a defined
policy for provisioning memory and bw, as well as an allocation policy for
Pes to Virtual Machines. A Host is associated with a Datacenter and
can run virtual machines.- Since:
- CloudSim Toolkit 1.0
- Author:
- Rodrigo N. Calheiros, Anton Beloglazov, Manoel Campos da Silva Filho
-
Field Summary
Fields inherited from class org.cloudsimplus.hosts.HostAbstract
activateOnDatacenterStartup, bw, cpuUtilizationStats, datacenter, defaultBwCapacity, defaultRamCapacity, defaultStorageCapacity, disk, id, idleShutdownDeadline, lazySuitabilityEvaluation, onShutdownListeners, onStartupListeners, onUpdateProcessingListeners, powerModel, provisioners, ram, resources, stateHistory, vmCreatedList, vmsMigratingIn, vmsMigratingOutFields inherited from interface org.cloudsimplus.hosts.Host
DEF_IDLE_SHUTDOWN_DEADLINE, LOGGER, NULLFields inherited from interface org.cloudsimplus.core.Startable
NOT_ASSIGNED -
Constructor Summary
ConstructorsConstructorDescriptionHostSimple(long ram, long bw, long storage, List<Pe> peList) Creates and instantaneously powers on a Host without a pre-defined ID.HostSimple(long ram, long bw, long storage, List<Pe> peList, boolean activate) Creates a Host without a pre-defined ID.HostSimple(long ram, long bw, HarddriveStorage storage, List<Pe> peList) Creates and instantaneously powers on a Host without a pre-defined ID.HostSimple(List<Pe> peList) Creates and instantaneously powers on a Host without a pre-defined ID.HostSimple(List<Pe> peList, boolean activate) Creates a Host without a pre-defined ID, 10 GB of RAM, 1000 Mbps of Bandwidth and 500 GB of Storage and enabling the host to be powered on or not.HostSimple(ResourceProvisioner ramProvisioner, ResourceProvisioner bwProvisioner, long storage, List<Pe> peList) Creates and instantaneously powers on a Host with the given parameters and aVmSchedulerSpaceSharedas default. -
Method Summary
Methods inherited from class org.cloudsimplus.hosts.HostAbstract
addMigratingInVm, addOnShutdownListener, addOnStartupListener, addOnUpdateProcessingListener, addVmMigratingOut, addVmToCreatedList, addVmToList, createTemporaryVm, createVm, deallocateResourcesOfVm, destroyAllVms, destroyTemporaryVm, destroyVm, destroyVmInternal, enableUtilizationStats, getAllocatedMipsForVm, getAvailableStorage, getBusyPeList, getBusyPesPercent, getBusyPesPercent, getBw, getBwUtilization, getCpuMipsUtilization, getCpuPercentRequested, getCpuPercentUtilization, getFinishedVms, getFreePeList, getMigratableVms, getMips, getPesNumber, getProvisioner, getRam, getRamUtilization, getResources, getStateHistory, getStorage, getSuitabilityFor, getTotalAllocatedMips, getTotalAllocatedMipsForVm, getTotalAvailableMips, getTotalMipsCapacity, getTotalUpTime, getTotalUpTimeHours, getUpTime, getUpTimeHours, getVmCreatedList, getVmList, getVmsMigratingIn, getVmsMigratingOut, getWorkingPeList, hasEverStarted, hasMigratingVms, incBusyPesNumber, incFailedPesNumber, incFreePesNumber, isFinished, isSuitableForVm, onFinish, onStart, processActivation, reallocateMigratingInVms, removeMigratingInVm, removeOnShutdownListener, removeOnStartupListener, removeOnUpdateProcessingListener, removeVmMigratingOut, setActive, setBwProvisioner, setDatacenter, setDefaultBwCapacity, setDefaultRamCapacity, setDefaultStorageCapacity, setFailed, setPeList, setPeStatus, setPowerModel, setRamProvisioner, setVmScheduler, shutdown, updateProcessing, updateVmProcessingMethods inherited from class org.cloudsimplus.core.ExecDelayableAbstract
isShuttingDown, setShutDownDelay, setStartupDelayMethods inherited from class org.cloudsimplus.core.StartableAbstract
getTotalExecutionTime, setFinishTime, setStartTimeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.cloudsimplus.core.ChangeableId
setIdMethods inherited from interface org.cloudsimplus.core.ExecDelayable
getRemainingStartupTime, getShutdownBeginTime, getShutDownDelay, getStartupCompletionTime, getStartupDelay, isShutDownDelayed, isShuttingDown, isStartingUp, isStartupDelayed, setShutdownBeginTime, setShutDownDelay, setStartupDelayMethods inherited from interface org.cloudsimplus.hosts.Host
getBusyPesNumber, getBwProvisioner, getCpuUtilizationStats, getDatacenter, getFailedPesNumber, getFinishTime, getFirstStartTime, getFreePesNumber, getIdleShutdownDeadline, getPeList, getPowerModel, getRamProvisioner, getVmScheduler, getWorkingPesNumber, isActive, isFailed, isLazySuitabilityEvaluation, isStateHistoryEnabled, setFinishTime, setIdleShutdownDeadline, setLazySuitabilityEvaluation, setSimulation, setStateHistoryEnabledMethods inherited from interface org.cloudsimplus.core.Identifiable
getIdMethods inherited from interface org.cloudsimplus.core.Machine
getIdleInterval, getLastBusyTime, getSimulation, isIdle, isIdleEnoughMethods inherited from interface org.cloudsimplus.core.PhysicalMachine
getExpectedRelativeCpuUtilization, getRelativeBwUtilization, getRelativeCpuUtilization, getRelativeMipsCapacityPercent, getRelativeRamUtilizationMethods inherited from interface org.cloudsimplus.resources.Resourceful
getResourceMethods inherited from interface org.cloudsimplus.core.Startable
getStartTime, getTotalExecutionTime, hasStarted, setLastBusyTime, setStartTime
-
Constructor Details
-
HostSimple
Creates and instantaneously powers on a Host without a pre-defined ID. It sets 10 GB of RAM, 1000 Mbps of Bandwidth and 500 GB of Storage. It uses aResourceProvisionerSimplefor RAM and Bandwidth. Finally, it sets aVmSchedulerSpaceSharedas default. The ID is automatically assigned when a List of Hosts is attached to aDatacenter.- Parameters:
peList- the host'sPelist- See Also:
-
HostSimple
Creates a Host without a pre-defined ID, 10 GB of RAM, 1000 Mbps of Bandwidth and 500 GB of Storage and enabling the host to be powered on or not.It creates a
ResourceProvisionerSimplefor RAM and Bandwidth. Finally, it sets aVmSchedulerSpaceSharedas default. The ID is automatically assigned when a List of Hosts is attached to aDatacenter.- Parameters:
peList- the host'sPelistactivate- true to power the Host on, false to power off (seeExecDelayableAbstract.setStartupDelay(double))- See Also:
-
HostSimple
public HostSimple(ResourceProvisioner ramProvisioner, ResourceProvisioner bwProvisioner, long storage, List<Pe> peList) Creates and instantaneously powers on a Host with the given parameters and aVmSchedulerSpaceSharedas default.- Parameters:
ramProvisioner- the ram provisioner with capacity in MegabytesbwProvisioner- the bw provisioner with capacity in Megabits/sstorage- the storage capacity in MegabytespeList- the host'sPelist- See Also:
-
HostSimple
Creates and instantaneously powers on a Host without a pre-defined ID. It uses aResourceProvisionerSimplefor RAM and Bandwidth and also sets aVmSchedulerSpaceSharedas default. The ID is automatically assigned when a List of Hosts is attached to aDatacenter.- Parameters:
ram- the RAM capacity in Megabytesbw- the Bandwidth (BW) capacity in Megabits/sstorage- the storage capacity in MegabytespeList- the host'sPelist- See Also:
-
HostSimple
Creates and instantaneously powers on a Host without a pre-defined ID. It uses aResourceProvisionerSimplefor RAM and Bandwidth and also sets aVmSchedulerSpaceSharedas default. The ID is automatically assigned when a List of Hosts is attached to aDatacenter.- Parameters:
ram- the RAM capacity in Megabytesbw- the Bandwidth (BW) capacity in Megabits/sstorage- the storage device for the HostpeList- the host'sPelist- See Also:
-
HostSimple
Creates a Host without a pre-defined ID. It uses aResourceProvisionerSimplefor RAM and Bandwidth and also sets aVmSchedulerSpaceSharedas default. The ID is automatically assigned when a List of Hosts is attached to aDatacenter.- Parameters:
ram- the RAM capacity in Megabytesbw- the Bandwidth (BW) capacity in Megabits/sstorage- the storage capacity in MegabytespeList- the host'sPelistactivate- true to power the Host on, false to power off (seeExecDelayableAbstract.setStartupDelay(double))- See Also:
-
-
Method Details
-
toString
-
compareTo
-