HostBuilder

public class HostBuilder extends Builder

A Builder class to create Host objects.

Author:Manoel Campos da Silva Filho

Constructors

HostBuilder

public HostBuilder()

Methods

createHosts

public HostBuilder createHosts(int amount)

createOneHost

public HostBuilder createOneHost()

getBandwidth

public long getBandwidth()

getHosts

public List<Host> getHosts()

getMips

public double getMips()

getOnUpdateVmsProcessingListener

public EventListener<HostUpdatesVmsProcessingEventInfo> getOnUpdateVmsProcessingListener()

getPes

public int getPes()

getRam

public long getRam()

getStorage

public long getStorage()

getVmSchedulerClass

public Class<? extends VmSchedulerAbstract> getVmSchedulerClass()

setBandwidth

public HostBuilder setBandwidth(long defaultBw)

setMips

public HostBuilder setMips(double defaultMIPS)

setOnUpdateVmsProcessingListener

public HostBuilder setOnUpdateVmsProcessingListener(EventListener<HostUpdatesVmsProcessingEventInfo> onUpdateVmsProcessingListener)

setPes

public HostBuilder setPes(int defaultPEs)

setRam

public HostBuilder setRam(int defaultRam)

setStorage

public HostBuilder setStorage(long defaultStorage)

setVmSchedulerClass

public HostBuilder setVmSchedulerClass(Class<? extends VmSchedulerAbstract> defaultVmSchedulerClass)