Package org.cloudsimplus.builders
Class HostBuilder
java.lang.Object
org.cloudsimplus.builders.HostBuilder
- All Implemented Interfaces:
Builder
public class HostBuilder extends Object implements Builder
- Since:
- CloudSim Plus 1.0
- Author:
- Manoel Campos da Silva Filho
- See Also:
HostSimple.setDefaultRamCapacity(long)
,HostSimple.setDefaultBwCapacity(long)
,HostSimple.setDefaultStorageCapacity(long)
-
Constructor Summary
Constructors Constructor Description HostBuilder()
-
Method Summary
Modifier and Type Method Description HostBuilder
create()
Creates a single Host and stores it internally.HostBuilder
create(int amount)
Creates a list of Hosts and stores it internally.List<Host>
getHosts()
Gets the list of all created Hosts.double
getMips()
int
getPes()
void
setHostCreationFunction(Function<List<Pe>,Host> hostCreationFunction)
Sets aFunction
used to create Hosts.HostBuilder
setMips(double defaultMIPS)
HostBuilder
setOnUpdateVmsProcessingListener(EventListener<HostUpdatesVmsProcessingEventInfo> listener)
HostBuilder
setPes(int defaultPEs)
HostBuilder
setVmSchedulerSupplier(Supplier<VmScheduler> vmSchedulerSupplier)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.cloudsimplus.builders.Builder
validateAmount
-
Constructor Details
-
HostBuilder
public HostBuilder()
-
-
Method Details
-
create
Creates a single Host and stores it internally.- Returns:
- See Also:
getHosts()
-
create
Creates a list of Hosts and stores it internally.- Returns:
- See Also:
getHosts()
-
getHosts
Gets the list of all created Hosts.- Returns:
- See Also:
create()
,create(int)
-
getMips
public double getMips() -
setMips
-
getPes
public int getPes() -
setPes
-
setHostCreationFunction
- Parameters:
hostCreationFunction
-
-
setOnUpdateVmsProcessingListener
public HostBuilder setOnUpdateVmsProcessingListener(EventListener<HostUpdatesVmsProcessingEventInfo> listener) -
setVmSchedulerSupplier
-