/** * This method is used to send to the broker the list with virtual machines that must be * created. * * @param list the list * @pre list !=null * @post $none */ public void submitVmList(List<? extends Vm> list) { getVmList().addAll(list); }
this.vmsUsedBandwidth = new HashMap<Integer, TreeMap<Double, Double>>(); cloudletsPerVm = new TreeMap<String, Integer>(); List<Vm> vmsList = broker.getVmList(); ReportDataDAO rdDAO = new ReportDataDAO(); for(Vm vm : vmsList) {
int currentSimulation = SettingBusiness.getCurrentSimulation(); List<Vm> vmsList = broker.getVmList(); for(Vm vm : vmsList) { int vmId = vm.getId();
DatacenterBroker broker = brokers.get(brokerName); List<Vm> vmsList = broker.getVmList(); for (Vm vm : vmsList) { int vmId = vm.getId();
/** * Create the submitted virtual machines in a datacenter. * * @param datacenterId Id of the chosen Datacenter * @pre $none * @post $none * @see #submitVmList(java.util.List) */ protected void createVmsInDatacenter(int datacenterId) { // send as much vms as possible for this datacenter before trying the next one int requestedVms = 0; String datacenterName = CloudSim.getEntityName(datacenterId); for (Vm vm : getVmList()) { if (!getVmsToDatacentersMap().containsKey(vm.getId())) { Log.printLine(CloudSim.clock() + ": " + getName() + ": Trying to Create VM #" + vm.getId() + " in " + datacenterName); sendNow(datacenterId, CloudSimTags.VM_CREATE_ACK, vm); requestedVms++; } } getDatacenterRequestedIdsList().add(datacenterId); setVmsRequested(requestedVms); setVmsAcks(0); }