Running the CloudSim Examples

Embed Size (px)

Citation preview

  • 7/23/2019 Running the CloudSim Examples

    1/2

    Running the CloudSim examples

    -----------------------------

    To run the CloudSim examples you need to do the following steps.

    In Windows:

    1. cd \jars

    2. java -classpath cloudsim-.jar;cloudsim-examples-

    .jar org.cloudbus.cloudsim.examples.CloudSimExample

    In Unix/Linux:

    1. cd /jars

    2. java -classpath cloudsim-.jar:cloudsim-examples-

    .jar org.cloudbus.cloudsim.examples.CloudSimExample

    Where you need to replace:

    - by the path to a directory where you have

    unpacked the CloudSim package

    - by the version of the downloaded CloudSim package

    - by the of number of the example you want to run

    CloudSim examples source code

    -----------------------------

    You can find the source code of the examples in /examples/org/cloudbus/cloudsim/examples/

    Compiling and running examples

    ------------------------------

    To compile and run an example (let's say

    org.cloudbus.cloudsim.examples.CloudSimExample1) you need to do the

    following steps:

    In Windows:

    1. cd

    2. javac -classpath jars\cloudsim-.jar

    examples\org\cloudbus\cloudsim\examples\CloudSimExample1.java

    3. java -classpath jars\cloudsim-.jar;examples

    org.cloudbus.cloudsim.examples.CloudSimExample1

    In Unix/Linux:

    1. cd

    2. javac -classpath jars/cloudsim-.jar

    examples/org/cloudbus/cloudsim/examples/CloudSimExample1.java

    3. java -classpath jars/cloudsim-.jar:examples

    org.cloudbus.cloudsim.examples.CloudSimExample1

  • 7/23/2019 Running the CloudSim Examples

    2/2

    Description of the CloudSim examples

    ------------------------------------

    Here is the description of what each example does:

    CloudSimExample1.java : shows how to create a datacenter with one host

    and run one cloudlet on it.

    CloudSimExample2.java : shows how to create a datacenter with one host

    and run two cloudlets on it.

    The cloudlets run in VMs with the same MIPS

    requirements. The cloudlets will take the same

    time to complete the execution.

    CloudSimExample3.java : shows how to create a datacenter with two hosts

    and run two cloudlets on it.

    The cloudlets run in VMs with different MIPS

    requirements. The cloudlets will take different

    time to complete the execution depending on the

    requested VM performance.

    CloudSimExample4.java : shows how to create two datacenters with one

    host each and run two cloudlets on them.

    CloudSimExample5.java : shows how to create two datacenters with one

    host each and run cloudlets of two users on them.

    CloudSimExample6.java : shows how to create scalable simulations.

    CloudSimExample7.java : shows how to pause simulations.

    CloudSimExample8.java : shows how to add entities in run time.

    network: this package contains examples on how to run simulation with

    network simulation.

    power: this package contains examples on how to use CloudSim's power-

    aware features.