CloudletBuilder

public class CloudletBuilder extends Builder

A Builder class to create Cloudlet objects.

Author:Manoel Campos da Silva Filho

Constructors

CloudletBuilder

public CloudletBuilder(BrokerBuilderDecorator brokerBuilder, DatacenterBrokerSimple broker)

Methods

createAndSubmitCloudlets

public CloudletBuilder createAndSubmitCloudlets(int amount)

createAndSubmitCloudlets

public CloudletBuilder createAndSubmitCloudlets(int amount, int initialId)

createCloudlets

public CloudletBuilder createCloudlets(int amount, int initialId)

createCloudlets

public CloudletBuilder createCloudlets(int amount)

getBrokerBuilder

public BrokerBuilderDecorator getBrokerBuilder()

getCloudlets

public List<Cloudlet> getCloudlets()

getFileSize

public long getFileSize()

getLength

public long getLength()

getOutputSize

public long getOutputSize()

getPes

public int getPes()

setFileSize

public CloudletBuilder setFileSize(long defaultFileSize)

setLength

public CloudletBuilder setLength(long defaultLength)

setOnCloudletFinishEventListener

public CloudletBuilder setOnCloudletFinishEventListener(EventListener<CloudletVmEventInfo> defaultOnCloudletFinishEventListener)

setOutputSize

public CloudletBuilder setOutputSize(long defaultOutputSize)

setPEs

public CloudletBuilder setPEs(int defaultPEs)

setRequiredFiles

public CloudletBuilder setRequiredFiles(List<String> requiredFiles)

setUtilizationModelBw

public CloudletBuilder setUtilizationModelBw(UtilizationModel utilizationModelBw)

setUtilizationModelCpu

public CloudletBuilder setUtilizationModelCpu(UtilizationModel utilizationModelCpu)

setUtilizationModelCpuRamAndBw

public final CloudletBuilder setUtilizationModelCpuRamAndBw(UtilizationModel utilizationModel)

Sets the same utilization model for CPU, RAM and BW. By this way, at a time t, every one of the 3 resources will use the same percentage of its capacity.

Parameters:
  • utilizationModel – the utilization model to set

setUtilizationModelRam

public CloudletBuilder setUtilizationModelRam(UtilizationModel utilizationModelRam)

setVm

public CloudletBuilder setVm(Vm defaultVm)

submitCloudlets

public CloudletBuilder submitCloudlets()

Submits the list of created cloudlets to the latest created broker.

Returns:the CloudletBuilder instance