Interface DatacenterCharacteristics
- All Superinterfaces:
Identifiable
- All Known Implementing Classes:
DatacenterCharacteristicsSimple
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
Modifier and TypeFieldDescriptionstatic final String
The default architecture of Datacenter Hosts to be used if not one is set.static final String
The default Operating System of Datacenter Hosts to be used if not one is set.static final String
The default Virtual Machine Monitor to be used if not one is set.static final DatacenterCharacteristics
An attribute that implements the Null Object Design Pattern forDatacenter
objects. -
Method Summary
Modifier and TypeMethodDescriptionGets the architecture of the Datacenter.double
Get the monetary cost to use each Megabit of bandwidth in the Datacenter.double
Get the monetary cost to use each Megabyte of RAM in the Datacenter.double
Gets the monetary cost per second of CPU for using the Hosts in the Datacenter.double
Get the monetary cost to use each Megabyte of storage in the Datacenter.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
Gets the current number of failed PMs.int
Gets the total number of PEs for all PMs.getOs()
Gets the Operating System (OS) used by the Hosts in the Datacenter.getVmm()
Gets the Virtual Machine Monitor (VMM), also called hypervisor, used in the Datacenter.boolean
Checks whether all PMs of the Datacenter are working properly or not.setArchitecture
(String architecture) Sets the architecture of the Datacenter.setCostPerBw
(double costPerBw) Sets the monetary cost to use each Megabit of bandwidth.setCostPerMem
(double costPerMem) Sets the monetary cost to use each Megabyte of RAM in the Datacenter.setCostPerSecond
(double costPerSecond) Sets the monetary cost per second of CPU.setCostPerStorage
(double costPerStorage) Sets the monetary cost to use each Megabyte of storage.Sets the Operating System (OS).Sets the VMM.
-
Field Details
-
DEFAULT_VMM
The default Virtual Machine Monitor to be used if not one is set.- See Also:
-
DEFAULT_ARCH
The default architecture of Datacenter Hosts to be used if not one is set.- See Also:
-
DEFAULT_OS
The default Operating System of Datacenter Hosts to be used if not one is set.- See Also:
-
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:
-
getDatacenter
Datacenter getDatacenter()Gets theDatacenter
that owns these characteristics- Returns:
-
getVmm
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
String getArchitecture()Gets the architecture of the Datacenter.- Returns:
- the architecture
-
setArchitecture
Sets the architecture of the Datacenter.- Parameters:
architecture
- the new architecture
-
getOs
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 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
-