Entities (CloudsimShut down , CIS, Data center, Data center Broker)
Explanation: Entities play an important role in cloudsim. Entity is something which can individually and independently exist. There are four entities in the cloudsim. These are explained as below:
- Cloudsim Shut Down: it is basically an entity which predominantly waits for the termination of all user entities so that the end of simulation can be identified. It is given ID = #0 in cloudsim. Figure1 represents the registration of CIS in cloudsim.
2. Cloud Information Service: It is an extremely important entity that provides the registration of resources, and figuring out which service is currently used. It basically extends class CloudSimCore for the running of simulation of cloudsim. It is basically given as an ID = #1 in the cloudsim.
As you can see in the Figure 2, once the CIS is created and register the resources , the we will create data center and data center broker using the following line:
Datacenter dcObject=new Datacenter(“Dc1”); /* object is created for Datacenter with name as Dc1 */
DatacenterBroker broker =new DatacenterBroker(); /* object with name broker is created*/
Int brokerId= broker.getId(); /* it is use to get the id for the data center broker cloudsim*/
3. Data Center: it is also an important entity which basically helps in creation of hosts with an appropriate amount of characteristics like Ram, PE’s , cpu’s, bandwidth, mips etc. Then the host is virtualized into the number of virtual machines which in turn run the tasks of users. It is given an ID= #2 in cloudsim.
4.Data center broker: it is the core of cloudsim. This helps in executing the tasks in proper sequence. It is given an ID= #3 in cloudsim.