VerticalVmScalingNull

final class VerticalVmScalingNull implements VerticalVmScaling

A class that implements the Null Object Design Pattern for VerticalVmScaling class.

Author:Manoel Campos da Silva Filho

See also: VerticalVmScaling.NULL

Methods

getAllocatedResource

public long getAllocatedResource()

getLowerThresholdFunction

public Function<Vm, Double> getLowerThresholdFunction()

getResource

public Resource getResource()

getResourceAmountToScale

public double getResourceAmountToScale()

getResourceClass

public Class<? extends ResourceManageable> getResourceClass()

getResourceUsageThresholdFunction

public Function<Vm, Double> getResourceUsageThresholdFunction()

getScalingFactor

public double getScalingFactor()

getUpperThresholdFunction

public Function<Vm, Double> getUpperThresholdFunction()

getVm

public Vm getVm()

isVmOverloaded

public boolean isVmOverloaded()

isVmUnderloaded

public boolean isVmUnderloaded()

requestUpScalingIfPredicateMatches

public boolean requestUpScalingIfPredicateMatches(VmHostEventInfo evt)

setLowerThresholdFunction

public VerticalVmScaling setLowerThresholdFunction(Function<Vm, Double> lowerThresholdFunction)

setResourceClass

public VerticalVmScaling setResourceClass(Class<? extends ResourceManageable> resourceClass)

setResourceScaling

public VerticalVmScaling setResourceScaling(ResourceScaling resourceScaling)

setScalingFactor

public VerticalVmScaling setScalingFactor(double scalingFactor)

setUpperThresholdFunction

public VerticalVmScaling setUpperThresholdFunction(Function<Vm, Double> upperThresholdFunction)

setVm

public VmScaling setVm(Vm vm)