VmStateHistoryEntry

public class VmStateHistoryEntry

Historic data about requests and allocation of MIPS for a given VM over the time.

Author:Anton Beloglazov

Constructors

VmStateHistoryEntry

public VmStateHistoryEntry(double time, double allocatedMips, double requestedMips, boolean inMigration)

Instantiates a new VmStateHistoryEntry

Parameters:
  • time – the time
  • allocatedMips – the allocated mips
  • requestedMips – the requested mips
  • inMigration – the is in migration

Methods

equals

public boolean equals(Object obj)

getAllocatedMips

public double getAllocatedMips()

Gets the allocated mips.

Returns:the allocated mips

getRequestedMips

public double getRequestedMips()

Gets the requested mips.

Returns:the requested mips

getTime

public double getTime()

Gets the time.

Returns:the time

hashCode

public int hashCode()

isInMigration

public boolean isInMigration()

Checks if the Vm is in migration for the current history.

Returns:true if the Vm is in migration, false otherwise

setAllocatedMips

protected final void setAllocatedMips(double allocatedMips)

Sets the allocated mips.

Parameters:
  • allocatedMips – the new allocated mips

setInMigration

protected final void setInMigration(boolean inMigration)

Defines if the Vm is in migration for the current history.

Parameters:
  • inMigration – true if the Vm is in migration, false otherwise

setRequestedMips

protected final void setRequestedMips(double requestedMips)

Sets the requested mips.

Parameters:
  • requestedMips – the new requested mips

setTime

protected final void setTime(double time)

Sets the time.

Parameters:
  • time – the new time