Interface DatacenterCharacteristics
- All Superinterfaces:
Identifiable
- All Known Implementing Classes:
DatacenterCharacteristicsSimple
public interface DatacenterCharacteristics extends Identifiable
An interface to be implemented by each class that represents
the physical characteristics of a Datacenter.
- Since:
- CloudSim Plus 1.0
- Author:
- Manzur Murshed, Rajkumar Buyya, Rodrigo N. Calheiros, Anton Beloglazov, Manoel Campos da Silva Filho
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_ARCH
The default architecture of Datacenter Hosts to be used if not one is set.static java.lang.String
DEFAULT_OS
The default Operating System of Datacenter Hosts to be used if not one is set.static java.lang.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 forDatacenter
objects. -
Method Summary
Modifier and Type Method Description java.lang.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 theDatacenter
that owns these characteristicslong
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
getNumberOfPes()
Gets the total number of PEs for all PMs.java.lang.String
getOs()
Gets the Operating System (OS) used by the Hosts in the Datacenter.java.lang.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(java.lang.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(java.lang.String os)
Sets the Operating System (OS).DatacenterCharacteristics
setVmm(java.lang.String vmm)
Sets the vmm.
-
Field Details
-
DEFAULT_VMM
static final java.lang.String DEFAULT_VMMThe default Virtual Machine Monitor to be used if not one is set.- See Also:
- Constant Field Values
-
DEFAULT_ARCH
static final java.lang.String DEFAULT_ARCHThe default architecture of Datacenter Hosts to be used if not one is set.- See Also:
- Constant Field Values
-
DEFAULT_OS
static final java.lang.String DEFAULT_OSThe default Operating System of Datacenter Hosts to be used if not one is set.- See Also:
- Constant Field Values
-
NULL
An attribute that implements the Null Object Design Pattern forDatacenter
objects.
-
-
Method Details
-
getId
long getId()Gets the Datacenter id.- Specified by:
getId
in interfaceIdentifiable
- Returns:
- the id
-
getDatacenter
Datacenter getDatacenter()Gets theDatacenter
that owns these characteristics- Returns:
- the Datacenter
-
getVmm
java.lang.String getVmm()Gets the Virtual Machine Monitor (VMM), also called hypervisor, used in the Datacenter.- Returns:
- the VMM name
-
setVmm
Sets the vmm.- Parameters:
vmm
- the new vmm
-
getArchitecture
java.lang.String getArchitecture()Gets the architecture of the Datacenter.- Returns:
- the architecture
-
setArchitecture
Sets the architecture.- Parameters:
architecture
- the new architecture
-
getOs
java.lang.String getOs()Gets the Operating System (OS) used by the Hosts in the Datacenter.- Returns:
- the Operating System (OS)
-
setOs
Sets the Operating System (OS).- Parameters:
os
- the new Operating System (OS)
-
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.
-
getNumberOfPes
int getNumberOfPes()Gets the total number of PEs for all PMs.- Returns:
- number of PEs
-
isWorking
boolean isWorking()Checks whether all PMs of the Datacenter are working properly or not.- Returns:
- if all PMs are working, otherwise
-
getCostPerBw
double getCostPerBw()Get the monetary cost to use each each Megabit of bandwidth in the Datacenter.- Returns:
- the cost ($) to use bw
-
setCostPerBw
Sets the monetary cost to use each Megabit of bandwidth.- Parameters:
costPerBw
- the cost ($) to set
-
getCostPerMem
double getCostPerMem()Get the monetary cost to use each Megabyte of RAM in the Datacenter.- Returns:
- the cost ($) to use RAM
-
setCostPerMem
Sets the monetary cost to use each Megabyte of RAM in the Datacenter.- Parameters:
costPerMem
- 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
-
setCostPerSecond
Sets the monetary cost per second of CPU.- Parameters:
costPerSecond
- the new 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
-
setCostPerStorage
Sets the monetary cost to use each Megabyte of storage.- Parameters:
costPerStorage
- cost ($) to use storage
-