VmClonerSimple

public class VmClonerSimple implements VmCloner

A basic implementation of a VmCloner.

Author:raysaoliveira

Constructors

VmClonerSimple

public VmClonerSimple(UnaryOperator<Vm> vmClonerFunction, Function<Vm, List<Cloudlet>> cloudletsClonerFunction)

Creates a Vm cloner which makes the maximum of 1 Vm clone.

Parameters:

See also: .setMaxClonesNumber(int)

Methods

clone

public Map.Entry<Vm, List<Cloudlet>> clone(Vm sourceVm)

getClonedVmsNumber

public int getClonedVmsNumber()

getMaxClonesNumber

public int getMaxClonesNumber()

isMaxClonesNumberReached

public boolean isMaxClonesNumberReached()

setCloudletsClonerFunction

public final VmCloner setCloudletsClonerFunction(Function<Vm, List<Cloudlet>> cloudletsClonerFunction)

setMaxClonesNumber

public VmCloner setMaxClonesNumber(int maxClonesNumber)

setVmClonerFunction

public final VmCloner setVmClonerFunction(UnaryOperator<Vm> vmClonerFunction)