xyzf12 / cloudsim

Automatically exported from code.google.com/p/cloudsim
0 stars 0 forks source link

"Something is wrong, the VM can's be restored" should be an Exception #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In PowerVmAllocationPolicySingleThreshold.java on lines 220-223 we have:

            if (!host.vmCreate(vm)) {
                Log.printLine("Something is wrong, the VM can's be restored");
                System.exit(0);
            }

The "Something is wrong, the VM can's be restored" message should be throw as 
an (Runtime) Exception so that we can control the simulation without being 
necessary to have log enabled. This is especially useful in big/huge 
simulations.

Original issue reported on code.google.com by daniella...@gmail.com on 10 Nov 2011 at 5:18

GoogleCodeExporter commented 9 years ago

Original comment by rodrigo.calheiros on 15 Dec 2011 at 3:54

GoogleCodeExporter commented 9 years ago
The power package has been substantially updated, please try the new code from 
the repository.

Original comment by anton.be...@gmail.com on 6 Jan 2012 at 8:12