public interface DatacenterCharacteristics extends Identifiable
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ARCH
The default architecture of Datacenter Hosts to be used if not one is set.
|
static String |
DEFAULT_OS
The default Operating System of Datacenter Hosts to be used if not one is set.
|
static double |
DEFAULT_TIMEZONE
The default Datacenter's Time Zone to be used if not one is set.
|
static String |
DEFAULT_VMM
The default Virtual Machine Monitor to be used if not one is set.
|
static DatacenterCharacteristics |
NULL
An attribute that implements the Null Object Design Pattern for
Datacenter
objects. |
Modifier and Type | Method and Description |
---|---|
String |
getArchitecture()
Gets the architecture of the Datacenter.
|
double |
getCostPerBw()
Get the monetary cost to use each each Megabit of bandwidth in the Datacenter.
|
double |
getCostPerMem()
Get the monetary cost to use each Megabyte of RAM in the Datacenter.
|
double |
getCostPerSecond()
Gets the monetary cost per second of CPU for using the Hosts in the Datacenter.
|
double |
getCostPerStorage()
Get the monetary cost to use each Megabyte of storage in the Datacenter.
|
Datacenter |
getDatacenter()
Gets the
Datacenter that owns these characteristics |
long |
getId()
Gets the Datacenter id.
|
double |
getMips()
Gets the total MIPS rating, which is the sum of MIPS rating of all Hosts in
the Datacenter.
|
long |
getNumberOfFailedHosts()
Gets the current number of failed PMs.
|
int |
getNumberOfFreePes()
Gets the total number of FREE or non-busy PEs for all PMs.
|
int |
getNumberOfPes()
Gets the total number of PEs for all PMs.
|
String |
getOs()
Gets the Operating System (OS) used by the Hosts in the Datacenter.
|
double |
getTimeZone()
Gets the time zone, a value between [-12 and 13], in which the
Datacenter is physically located.
|
String |
getVmm()
Gets the Virtual Machine Monitor (VMM), also called hypervisor, used in the
Datacenter.
|
boolean |
isWorking()
Checks whether all PMs of the Datacenter are working properly or not.
|
DatacenterCharacteristics |
setArchitecture(String architecture)
Sets the architecture.
|
DatacenterCharacteristics |
setCostPerBw(double costPerBw)
Sets the monetary cost to use each Megabit of bandwidth.
|
DatacenterCharacteristics |
setCostPerMem(double costPerMem)
Sets the monetary cost to use each Megabyte of RAM in the Datacenter.
|
DatacenterCharacteristics |
setCostPerSecond(double costPerSecond)
Sets the monetary cost per second of CPU.
|
DatacenterCharacteristics |
setCostPerStorage(double costPerStorage)
Sets the monetary cost to use each Megabyte of storage.
|
DatacenterCharacteristics |
setOs(String os)
Sets the Operating System (OS).
|
DatacenterCharacteristics |
setTimeZone(double timeZone)
Sets the time zone.
|
DatacenterCharacteristics |
setVmm(String vmm)
Sets the vmm.
|
static final String DEFAULT_VMM
static final String DEFAULT_ARCH
static final String DEFAULT_OS
static final double DEFAULT_TIMEZONE
static final DatacenterCharacteristics NULL
Datacenter
objects.long getId()
getId
in interface Identifiable
Datacenter getDatacenter()
Datacenter
that owns these characteristicsdouble getTimeZone()
DatacenterCharacteristics setTimeZone(double timeZone)
timeZone
- the new time zone value, between [-12 and 13].String getVmm()
DatacenterCharacteristics setVmm(String vmm)
vmm
- the new vmmString getArchitecture()
DatacenterCharacteristics setArchitecture(String architecture)
architecture
- the new architectureString getOs()
DatacenterCharacteristics setOs(String os)
os
- the new Operating System (OS)double getMips()
long getNumberOfFailedHosts()
int getNumberOfFreePes()
int getNumberOfPes()
boolean isWorking()
double getCostPerBw()
DatacenterCharacteristics setCostPerBw(double costPerBw)
costPerBw
- the cost ($) to setdouble getCostPerMem()
DatacenterCharacteristics setCostPerMem(double costPerMem)
costPerMem
- cost ($) to use RAMdouble getCostPerSecond()
DatacenterCharacteristics setCostPerSecond(double costPerSecond)
costPerSecond
- the new cost ($) per seconddouble getCostPerStorage()
DatacenterCharacteristics setCostPerStorage(double costPerStorage)
costPerStorage
- cost ($) to use storageCopyright © 2015–2019 Systems, Security and Image Communication Lab - Instituto de Telecomunica����es (IT) - Universidade da Beira Interior (UBI) - Instituto Federal de Educa����o Ci��ncia e Tecnologia do Tocantins (IFTO). All rights reserved.