Skip to content

Get hostUtilization every 600 seconds in CloudSim #467

Answered by AndrewLawrence80
gozasht asked this question in Q&A
Discussion options

You must be logged in to vote

Try this, add an event listener to the simulation monitoring the clock tick, see createSimulation() in the code

package com.example;

import java.util.ArrayList;
import java.util.List;

import org.cloudsimplus.brokers.DatacenterBroker;
import org.cloudsimplus.brokers.DatacenterBrokerSimple;
import org.cloudsimplus.builders.tables.CloudletsTableBuilder;
import org.cloudsimplus.cloudlets.Cloudlet;
import org.cloudsimplus.cloudlets.CloudletSimple;
import org.cloudsimplus.core.CloudSimPlus;
import org.cloudsimplus.datacenters.Datacenter;
import org.cloudsimplus.datacenters.DatacenterSimple;
import org.cloudsimplus.hosts.Host;
import org.cloudsimplus.hosts.HostSimple;
import org.cloudsimplus.l…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by manoelcampos
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #463 on September 30, 2023 20:46.