Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@


import java.io.IOException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

/**
* This Example is following the format for {@link org.cloudbus.cloudsim.examples.power.planetlab.Dvfs}
Expand Down Expand Up @@ -31,7 +33,7 @@ public static void main(String[] args) throws IOException {
/**
* Getting the path of the planet lab workload that is included in the cloudSim Package
*/
String inputFolder = ContainerOverbooking.class.getClassLoader().getResource("workload/planetlab").getPath();
String inputFolder = URLDecoder.decode(ContainerOverbooking.class.getClassLoader().getResource("workload/planetlab").getPath(), StandardCharsets.UTF_8);
/**
* The output folder for the logs. The log files would be located in this folder.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@


import java.io.IOException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

/**
* This Example is following the format for {@link org.cloudbus.cloudsim.examples.power.planetlab.Dvfs}
Expand Down Expand Up @@ -31,7 +33,7 @@ public static void main(String[] args) throws IOException {
/**
* Getting the path of the planet lab workload that is included in the cloudSim Package
*/
String inputFolder = ContainerOverbooking.class.getClassLoader().getResource("workload/planetlab").getPath();
String inputFolder = URLDecoder.decode(ContainerOverbooking.class.getClassLoader().getResource("workload/planetlab").getPath(), StandardCharsets.UTF_8);
/**
* The output folder for the logs. The log files would be located in this folder.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@


import java.io.IOException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
/**
* This Example is following the format for {@link org.cloudbus.cloudsim.examples.power.planetlab.Dvfs}
* It specifically studies the placement of containers.
Expand Down Expand Up @@ -31,7 +33,7 @@ public static void main(String[] args) throws IOException {
/**
* Getting the path of the planet lab workload that is included in the cloudSim Package
*/
String inputFolder = ContainerOverbooking.class.getClassLoader().getResource("workload/planetlab").getPath();
String inputFolder = URLDecoder.decode(ContainerOverbooking.class.getClassLoader().getResource("workload/planetlab").getPath(), StandardCharsets.UTF_8);
/**
* The output folder for the logs. The log files would be located in this folder.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
import org.cloudbus.cloudsim.provisioners.BwProvisionerSimple;
import org.cloudbus.cloudsim.provisioners.PeProvisionerSimple;
import org.cloudbus.cloudsim.provisioners.RamProvisionerSimple;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

/**
* A simple example showing how to create
Expand Down Expand Up @@ -117,7 +119,7 @@ public static void main(String[] args) {

//Sixth step: configure network
//load the network topology file
NetworkTopology.buildNetworkTopology(NetworkExample1.class.getClassLoader().getResource("topology.brite").getPath());
NetworkTopology.buildNetworkTopology(URLDecoder.decode(NetworkExample1.class.getClassLoader().getResource("topology.brite").getPath(), StandardCharsets.UTF_8));

//maps CloudSim entities to BRITE entities
//PowerDatacenter will correspond to BRITE node 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
import org.cloudbus.cloudsim.provisioners.BwProvisionerSimple;
import org.cloudbus.cloudsim.provisioners.PeProvisionerSimple;
import org.cloudbus.cloudsim.provisioners.RamProvisionerSimple;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

/**
* A simple example showing how to create
Expand Down Expand Up @@ -136,7 +138,7 @@ public static void main(String[] args) {

//Sixth step: configure network
//load the network topology file
NetworkTopology.buildNetworkTopology(NetworkExample1.class.getClassLoader().getResource("topology.brite").getPath());
NetworkTopology.buildNetworkTopology(URLDecoder.decode(NetworkExample1.class.getClassLoader().getResource("topology.brite").getPath(), StandardCharsets.UTF_8));

//maps CloudSim entities to BRITE entities
//Datacenter0 will correspond to BRITE node 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
import org.cloudbus.cloudsim.provisioners.BwProvisionerSimple;
import org.cloudbus.cloudsim.provisioners.PeProvisionerSimple;
import org.cloudbus.cloudsim.provisioners.RamProvisionerSimple;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

/**
* A simple example showing how to create
Expand Down Expand Up @@ -137,7 +139,7 @@ public static void main(String[] args) {

//Sixth step: configure network
//load the network topology file
NetworkTopology.buildNetworkTopology(NetworkExample1.class.getClassLoader().getResource("topology.brite").getPath());
NetworkTopology.buildNetworkTopology(URLDecoder.decode(NetworkExample1.class.getClassLoader().getResource("topology.brite").getPath(), StandardCharsets.UTF_8));

//maps CloudSim entities to BRITE entities
//Datacenter0 will correspond to BRITE node 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.cloudbus.cloudsim.examples.power.planetlab;

import java.io.IOException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

/**
* A simulation of a heterogeneous power aware data center that only applied DVFS, but no dynamic
Expand Down Expand Up @@ -33,7 +35,9 @@ public class Dvfs {
public static void main(String[] args) throws IOException {
boolean enableOutput = true;
boolean outputToFile = false;
String inputFolder = Dvfs.class.getClassLoader().getResource("workload/planetlab").getPath();
String inputFolder = URLDecoder.decode(
Dvfs.class.getClassLoader().getResource("workload/planetlab").getPath(),
StandardCharsets.UTF_8);
String outputFolder = "output";
String workload = "20110303"; // PlanetLab workload
String vmAllocationPolicy = "dvfs"; // DVFS policy without VM migrations
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.cloudbus.cloudsim.examples.power.planetlab;

import java.io.IOException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

/**
* A simulation of a heterogeneous power aware data center that applies the Inter Quartile Range
Expand Down Expand Up @@ -32,7 +34,9 @@ public class IqrMc {
public static void main(String[] args) throws IOException {
boolean enableOutput = true;
boolean outputToFile = false;
String inputFolder = IqrMc.class.getClassLoader().getResource("workload/planetlab").getPath();
String inputFolder = URLDecoder.decode(
IqrMc.class.getClassLoader().getResource("workload/planetlab").getPath(),
StandardCharsets.UTF_8);
String outputFolder = "output";
String workload = "20110303"; // PlanetLab workload
String vmAllocationPolicy = "iqr"; // Inter Quartile Range (IQR) VM allocation policy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.cloudbus.cloudsim.examples.power.planetlab;

import java.io.IOException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

/**
* A simulation of a heterogeneous power aware data center that applies the Inter Quartile Range
Expand Down Expand Up @@ -32,7 +34,7 @@ public class IqrMmt {
public static void main(String[] args) throws IOException {
boolean enableOutput = true;
boolean outputToFile = false;
String inputFolder = IqrMmt.class.getClassLoader().getResource("workload/planetlab").getPath();
String inputFolder = URLDecoder.decode(IqrMmt.class.getClassLoader().getResource("workload/planetlab").getPath(), StandardCharsets.UTF_8);
String outputFolder = "output";
String workload = "20110303"; // PlanetLab workload
String vmAllocationPolicy = "iqr"; // Inter Quartile Range (IQR) VM allocation policy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.cloudbus.cloudsim.examples.power.planetlab;

import java.io.IOException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

/**
* A simulation of a heterogeneous power aware data center that applies the Inter Quartile Range
Expand Down Expand Up @@ -32,7 +34,7 @@ public class IqrMu {
public static void main(String[] args) throws IOException {
boolean enableOutput = true;
boolean outputToFile = false;
String inputFolder = IqrMu.class.getClassLoader().getResource("workload/planetlab").getPath();
String inputFolder = URLDecoder.decode(IqrMu.class.getClassLoader().getResource("workload/planetlab").getPath(), StandardCharsets.UTF_8);
String outputFolder = "output";
String workload = "20110303"; // PlanetLab workload
String vmAllocationPolicy = "iqr"; // Inter Quartile Range (IQR) VM allocation policy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.cloudbus.cloudsim.examples.power.planetlab;

import java.io.IOException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

/**
* A simulation of a heterogeneous power aware data center that applies the Inter Quartile Range
Expand Down Expand Up @@ -32,7 +34,7 @@ public class IqrRs {
public static void main(String[] args) throws IOException {
boolean enableOutput = true;
boolean outputToFile = false;
String inputFolder = IqrRs.class.getClassLoader().getResource("workload/planetlab").getPath();
String inputFolder = URLDecoder.decode(IqrRs.class.getClassLoader().getResource("workload/planetlab").getPath(), StandardCharsets.UTF_8);
String outputFolder = "output";
String workload = "20110303"; // PlanetLab workload
String vmAllocationPolicy = "iqr"; // Inter Quartile Range (IQR) VM allocation policy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.cloudbus.cloudsim.examples.power.planetlab;

import java.io.IOException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

/**
* A simulation of a heterogeneous power aware data center that applies the Local Regression (LR) VM
Expand Down Expand Up @@ -32,7 +34,7 @@ public class LrMc {
public static void main(String[] args) throws IOException {
boolean enableOutput = true;
boolean outputToFile = false;
String inputFolder = LrMc.class.getClassLoader().getResource("workload/planetlab").getPath();
String inputFolder = URLDecoder.decode(LrMc.class.getClassLoader().getResource("workload/planetlab").getPath(), StandardCharsets.UTF_8);
String outputFolder = "output";
String workload = "20110303"; // PlanetLab workload
String vmAllocationPolicy = "lr"; // Local Regression (LR) VM allocation policy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.cloudbus.cloudsim.examples.power.planetlab;

import java.io.IOException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

/**
* A simulation of a heterogeneous power aware data center that applies the Local Regression (LR) VM
Expand Down Expand Up @@ -32,7 +34,7 @@ public class LrMmt {
public static void main(String[] args) throws IOException {
boolean enableOutput = true;
boolean outputToFile = false;
String inputFolder = LrMmt.class.getClassLoader().getResource("workload/planetlab").getPath();
String inputFolder = URLDecoder.decode(LrMmt.class.getClassLoader().getResource("workload/planetlab").getPath(), StandardCharsets.UTF_8);
String outputFolder = "output";
String workload = "20110303"; // PlanetLab workload
String vmAllocationPolicy = "lr"; // Local Regression (LR) VM allocation policy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.cloudbus.cloudsim.examples.power.planetlab;

import java.io.IOException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

/**
* A simulation of a heterogeneous power aware data center that applies the Local Regression (LR) VM
Expand Down Expand Up @@ -32,7 +34,7 @@ public class LrMu {
public static void main(String[] args) throws IOException {
boolean enableOutput = true;
boolean outputToFile = false;
String inputFolder = LrMu.class.getClassLoader().getResource("workload/planetlab").getPath();
String inputFolder = URLDecoder.decode(LrMu.class.getClassLoader().getResource("workload/planetlab").getPath(), StandardCharsets.UTF_8);
String outputFolder = "output";
String workload = "20110303"; // PlanetLab workload
String vmAllocationPolicy = "lr"; // Local Regression (LR) VM allocation policy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.cloudbus.cloudsim.examples.power.planetlab;

import java.io.IOException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

/**
* A simulation of a heterogeneous power aware data center that applies the Local Regression (LR) VM
Expand Down Expand Up @@ -32,7 +34,7 @@ public class LrRs {
public static void main(String[] args) throws IOException {
boolean enableOutput = true;
boolean outputToFile = false;
String inputFolder = LrRs.class.getClassLoader().getResource("workload/planetlab").getPath();
String inputFolder = URLDecoder.decode(LrRs.class.getClassLoader().getResource("workload/planetlab").getPath(), StandardCharsets.UTF_8);
String outputFolder = "output";
String workload = "20110303"; // PlanetLab workload
String vmAllocationPolicy = "lr"; // Local Regression (LR) VM allocation policy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.cloudbus.cloudsim.examples.power.planetlab;

import java.io.IOException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

/**
* A simulation of a heterogeneous power aware data center that applies the Local Regression Robust
Expand Down Expand Up @@ -32,7 +34,7 @@ public class LrrMc {
public static void main(String[] args) throws IOException {
boolean enableOutput = true;
boolean outputToFile = false;
String inputFolder = LrrMc.class.getClassLoader().getResource("workload/planetlab").getPath();
String inputFolder = URLDecoder.decode(LrrMc.class.getClassLoader().getResource("workload/planetlab").getPath(), StandardCharsets.UTF_8);
String outputFolder = "output";
String workload = "20110303"; // PlanetLab workload
String vmAllocationPolicy = "lrr"; // Local Regression Robust (LRR) VM allocation policy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.cloudbus.cloudsim.examples.power.planetlab;

import java.io.IOException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

/**
* A simulation of a heterogeneous power aware data center that applies the Local Regression Robust
Expand Down Expand Up @@ -32,7 +34,7 @@ public class LrrMmt {
public static void main(String[] args) throws IOException {
boolean enableOutput = true;
boolean outputToFile = false;
String inputFolder = LrrMmt.class.getClassLoader().getResource("workload/planetlab").getPath();
String inputFolder = URLDecoder.decode(LrrMmt.class.getClassLoader().getResource("workload/planetlab").getPath(), StandardCharsets.UTF_8);
String outputFolder = "output";
String workload = "20110303"; // PlanetLab workload
String vmAllocationPolicy = "lrr"; // Local Regression Robust (LRR) VM allocation policy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.cloudbus.cloudsim.examples.power.planetlab;

import java.io.IOException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

/**
* A simulation of a heterogeneous power aware data center that applies the Local Regression Robust
Expand Down Expand Up @@ -32,7 +34,7 @@ public class LrrMu {
public static void main(String[] args) throws IOException {
boolean enableOutput = true;
boolean outputToFile = false;
String inputFolder = LrrMu.class.getClassLoader().getResource("workload/planetlab").getPath();
String inputFolder = URLDecoder.decode(LrrMu.class.getClassLoader().getResource("workload/planetlab").getPath(), StandardCharsets.UTF_8);
String outputFolder = "output";
String workload = "20110303"; // PlanetLab workload
String vmAllocationPolicy = "lrr"; // Local Regression Robust (LRR) VM allocation policy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.cloudbus.cloudsim.examples.power.planetlab;

import java.io.IOException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

/**
* A simulation of a heterogeneous power aware data center that applies the Local Regression Robust
Expand Down Expand Up @@ -32,7 +34,7 @@ public class LrrRs {
public static void main(String[] args) throws IOException {
boolean enableOutput = true;
boolean outputToFile = false;
String inputFolder = LrrRs.class.getClassLoader().getResource("workload/planetlab").getPath();
String inputFolder = URLDecoder.decode(LrrRs.class.getClassLoader().getResource("workload/planetlab").getPath(), StandardCharsets.UTF_8);
String outputFolder = "output";
String workload = "20110303"; // PlanetLab workload
String vmAllocationPolicy = "lrr"; // Local Regression Robust (LRR) VM allocation policy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.cloudbus.cloudsim.examples.power.planetlab;

import java.io.IOException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

/**
* A simulation of a heterogeneous power aware data center that applies the Median Absolute
Expand Down Expand Up @@ -32,7 +34,7 @@ public class MadMc {
public static void main(String[] args) throws IOException {
boolean enableOutput = true;
boolean outputToFile = false;
String inputFolder = MadMc.class.getClassLoader().getResource("workload/planetlab").getPath();
String inputFolder = URLDecoder.decode(MadMc.class.getClassLoader().getResource("workload/planetlab").getPath(), StandardCharsets.UTF_8);
String outputFolder = "output";
String workload = "20110303"; // PlanetLab workload
String vmAllocationPolicy = "mad"; // Median Absolute Deviation (MAD) VM allocation policy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.cloudbus.cloudsim.examples.power.planetlab;

import java.io.IOException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

/**
* A simulation of a heterogeneous power aware data center that applies the Median Absolute
Expand Down Expand Up @@ -32,7 +34,7 @@ public class MadMmt {
public static void main(String[] args) throws IOException {
boolean enableOutput = true;
boolean outputToFile = false;
String inputFolder = MadMmt.class.getClassLoader().getResource("workload/planetlab").getPath();
String inputFolder = URLDecoder.decode(MadMmt.class.getClassLoader().getResource("workload/planetlab").getPath(), StandardCharsets.UTF_8);
String outputFolder = "output";
String workload = "20110303"; // PlanetLab workload
String vmAllocationPolicy = "mad"; // Median Absolute Deviation (MAD) VM allocation policy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.cloudbus.cloudsim.examples.power.planetlab;

import java.io.IOException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

/**
* A simulation of a heterogeneous power aware data center that applies the Median Absolute
Expand Down Expand Up @@ -32,7 +34,7 @@ public class MadMu {
public static void main(String[] args) throws IOException {
boolean enableOutput = true;
boolean outputToFile = false;
String inputFolder = MadMu.class.getClassLoader().getResource("workload/planetlab").getPath();
String inputFolder = URLDecoder.decode(MadMu.class.getClassLoader().getResource("workload/planetlab").getPath(), StandardCharsets.UTF_8);
String outputFolder = "output";
String workload = "20110303"; // PlanetLab workload
String vmAllocationPolicy = "mad"; // Median Absolute Deviation (MAD) VM allocation policy
Expand Down
Loading