the Broker supplied is CloudSim package is intended to be an example.
It has only limited functionalities. By writing your own broker, you
can adjust its behavior according to your needs. For example, you can
implement a new broker that, instead of receiving a list of Cloudlets,
it receives a list containing <time, cloudlet> which the broker
interprets as the time to submit the Cloudlet.
Controlling the submission time then can be done by scheduling
internal broker events. Examples of such internal events where posted
previously in the list.
Regards,
Rodrigo
You only need to instantiate more Broker objects and supply to each of
them its own set of VMs and Cloudlets. If you want specific brokers
interacting with specific data centers, it should be passed to each
broker during its initialization.
Regards,
Rodrigo
Datacenter_0.processCloudletSubmit(): Exception error.
java.lang.NullPointerException
at org.cloudbus.cloudsim.Datacenter.processCloudletSubmit(Datacenter.java:761)
at org.cloudbus.cloudsim.Datacenter.processEvent(Datacenter.java:159)
at org.cloudbus.cloudsim.core.SimEntity.run(SimEntity.java:406)
at org.cloudbus.cloudsim.core.CloudSim.runClockTick(CloudSim.java:471)
at org.cloudbus.cloudsim.core.CloudSim.run(CloudSim.java:835)
at org.cloudbus.cloudsim.core.CloudSim.startSimulation(CloudSim.java:151)
at org.cloudbus.cloudsim.examples.network.NetworkExample3.main(NetworkExample3.java:226)
Datacenter_0.processCloudletSubmit(): Exception error.
public static List<List<Vm>> vmarray = new ArrayList<List<Vm>>();
for(To the number of categories){
int numberVm=0;
for (To the number of request each category){
numberVm ++;
}
vmList=createVmList(brokerId, numberVm);
vmarray.add(vmList);
broker.submitVmList(vmList);
}
And change findHostForVm method in PowerVmAllocationPolicyMigrationAbstract and allocated each vm category that there are in vmarray to a host if this host had capacity .
but the outputs is not correct.
Please help me what should i do? do I need to change the class broker?
What is wrong?
Thanks a lot
--
---
You received this message because you are subscribed to the Google Groups "cloudsim" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloudsim+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
This message and its attachments are private and confidential. If you have received this message in error, please notify the sender and remove it and its attachments from your system.
The University of Westminster is a charity and a company limited by guarantee. Registration number: 977818 England. Registered Office: 309 Regent Street, London W1B 2UW.