--
---
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.
package org.cloudbus.cloudsim.examples.power.planetlab;
import java.io.IOException;
/**
* A simulation of a heterogeneous power aware data center that applies the Local Regression (LR) VM
* allocation policy and Maximum Correlation (MC) VM selection policy.
*
* This example uses a real PlanetLab workload: 20110303.
*
* The remaining configuration parameters are in the Constants and PlanetLabConstants classes.
*
* If you are using any algorithms, policies or workload included in the power package please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24,
* Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012
*
* @author Anton Beloglazov
* @since Jan 5, 2012
*/
public class LrMc {
/**
* The main method.
*
* @param args the arguments
* @throws IOException Signals that an I/O exception has occurred.
*/
public static void main(String[] args) throws IOException {
boolean enableOutput = true;
boolean outputToFile = false;
String inputFolder = LrMc.class.getClassLoader().getResource("C:/Program Files/cloudsim-3.0.3/examples/workload/planetlab").getPath();
instead of
String inputFolder = LrMc.class.getClassLoader().getResource("workload/planetlab").getPath();
String outputFolder = "output";
String workload = "20110303"; //PlanetLab workload
String vmAllocationPolicy = "lr"; // Local Regression (LR) VM allocation policy
String vmSelectionPolicy = "mc"; // Maximum Correlation (MC) VM selection policy
String parameter = "1.2"; // the safety parameter of the LR policy
new PlanetLabRunner(
enableOutput,
outputToFile,
inputFolder,
outputFolder,
workload,
vmAllocationPolicy,
vmSelectionPolicy,
parameter);
}
}
=============
but again i got the error
C:\Program Files\cloudsim-3.0.3> java -classpath jars\cloudsim-3.0.3.jar;jars\fl
anagan.jar;examples org.cloudbus.cloudsim.examples.power.planetlab.LrMc
Exception in thread "main"
java.lang.NullPointerException
at org.cloudbus.cloudsim.examples.power.planetlab.LrMc.main(LrMc.java:37
)
i am getting nullpointerException error at cloudsim.startsimulation