DatacenterCharacteristics

public interface DatacenterCharacteristics extends Identifiable

An interface to be implemented by each class that represents the physical characteristics of a Datacenter.

Author:Manzur Murshed, Rajkumar Buyya, Rodrigo N. Calheiros, Anton Beloglazov, Manoel Campos da Silva Filho

Fields

DEFAULT_ARCH

String DEFAULT_ARCH

The default architecture of Datacenter Hosts to be used if not one is set.

DEFAULT_OS

String DEFAULT_OS

The default Operating System of Datacenter Hosts to be used if not one is set.

DEFAULT_TIMEZONE

double DEFAULT_TIMEZONE

The default Datacenter’s Time Zone to be used if not one is set.

DEFAULT_VMM

String DEFAULT_VMM

The default Virtual Machine Monitor to be used if not one is set.

NULL

DatacenterCharacteristics NULL

An attribute that implements the Null Object Design Pattern for Datacenter objects.

Methods

getArchitecture

String getArchitecture()

Gets the architecture of the Datacenter.

Returns:the architecture

getCostPerBw

double getCostPerBw()

Get the monetary cost to use each each Megabit of bandwidth in the Datacenter.

Returns:the cost ($) to use bw

getCostPerMem

double getCostPerMem()

Get the monetary cost to use each Megabyte of RAM in the Datacenter.

Returns:the cost ($) to use RAM

getCostPerSecond

double getCostPerSecond()

Gets the monetary cost per second of CPU for using the Hosts in the Datacenter.

Returns:the cost ($) per second

getCostPerStorage

double getCostPerStorage()

Get the monetary cost to use each Megabyte of storage in the Datacenter.

Returns:the cost ($) to use storage

getDatacenter

Datacenter getDatacenter()

Gets the Datacenter that owns these characteristics

Returns:the Datacenter

getId

long getId()

Gets the Datacenter id.

Returns:the id

getMips

double getMips()

Gets the total MIPS rating, which is the sum of MIPS rating of all Hosts in the Datacenter.

Returns:the sum of MIPS ratings

getNumberOfFailedHosts

long getNumberOfFailedHosts()

Gets the current number of failed PMs.

Returns:current number of failed PMs the Datacenter has.

getNumberOfFreePes

int getNumberOfFreePes()

Gets the total number of FREE or non-busy PEs for all PMs.

Returns:number of PEs

getNumberOfPes

int getNumberOfPes()

Gets the total number of PEs for all PMs.

Returns:number of PEs

getOs

String getOs()

Gets the Operating System (OS) used by the Hosts in the Datacenter.

Returns:the Operating System (OS)

getTimeZone

double getTimeZone()

Gets the time zone, a value between [-12 and 13], in which the Datacenter is physically located.

Returns:the time zone

getVmm

String getVmm()

Gets the Virtual Machine Monitor (VMM), also called hypervisor, used in the Datacenter.

Returns:the VMM name

isWorking

boolean isWorking()

Checks whether all PMs of the Datacenter are working properly or not.

Returns:if all PMs are working, otherwise

setArchitecture

DatacenterCharacteristics setArchitecture(String architecture)

Sets the architecture.

Parameters:
  • architecture – the new architecture

setCostPerBw

DatacenterCharacteristics setCostPerBw(double costPerBw)

Sets the monetary cost to use each Megabit of bandwidth.

Parameters:
  • costPerBw – the cost ($) to set

setCostPerMem

DatacenterCharacteristics setCostPerMem(double costPerMem)

Sets the monetary cost to use each Megabyte of RAM in the Datacenter.

Parameters:
  • costPerMem – cost ($) to use RAM

setCostPerSecond

DatacenterCharacteristics setCostPerSecond(double costPerSecond)

Sets the monetary cost per second of CPU.

Parameters:
  • costPerSecond – the new cost ($) per second

setCostPerStorage

DatacenterCharacteristics setCostPerStorage(double costPerStorage)

Sets the monetary cost to use each Megabyte of storage.

Parameters:
  • costPerStorage – cost ($) to use storage

setOs

DatacenterCharacteristics setOs(String os)

Sets the Operating System (OS).

Parameters:
  • os – the new Operating System (OS)

setTimeZone

DatacenterCharacteristics setTimeZone(double timeZone)

Sets the time zone. If an invalid value is given, the timezone is set to 0.

Parameters:
  • timeZone – the new time zone value, between [-12 and 13].

setVmm

DatacenterCharacteristics setVmm(String vmm)

Sets the vmm.

Parameters:
  • vmm – the new vmm