Cloud Computing Projects

Home / How Do I Run a CloudSim Example

How Do I Run a CloudSim Example

How Do I Run a CloudSim Example

        In general, all the programmers who are in the beginning stage can run the CloudSim packages and this article is the guidance for that process.

        First and foremost process is to get to know about the code as the example for CloudSim and the following code is about the datacenter and customer initialization.

URL url = this.getClass().getResource("/cloudreports/gui/resources/blue_logo.gif");
getFrames()[0].setIconImage(new ImageIcon(url).getImage());
DatacenterRegistryDAO drDAO = new DatacenterRegistryDAO();
CustomerRegistryDAO crDAO = new CustomerRegistryDAO();
File dbDirectory = new File("db");
if(!dbDirectory.exists()) { dbDirectory.mkdir();
}
File[] dbArray = dbDirectory.listFiles(new FilenameFilter() { @Override public boolean accept(File dir, String name) { return name.endsWith(".cre");
}
});
if (dbArray.length == 0) {
HibernateUtil.setActiveDatabase("Cloud_Applications.cre");
Database.createDatabase();
drDAO.insertNewDatacenterRegistry(new DatacenterRegistry("DataCenter1"));
crDAO.insertNewCustomerRegistry(new CustomerRegistry("Task1"));
}
else {
for(File dbFile : dbArray) {
if(dbFile.isFile() &&
dbFile.getName().endsWith(".cre")) {
HibernateUtil.setActiveDatabase(dbFile.getName());
break;
}
}
}
overallDatacenterView = new OverallDatacenterView();
overallCostumerView = new OverallCustomerView();
specificDatacenterView = new SpecificDatacenterView(drDAO.getDatacenterRegistry(drDAO.getAllDatacentersNames()[0]));
specificCostumerView = new SpecificCustomerView(crDAO.getCustomerRegistry(crDAO.getCustomersNames()[0])); cloudView = new CloudView();
logoPanel = new LogoPanel();
simulationView = new SimulationView();
setDatacenterModified(false);
setUserGroupModified(false);
initComponents();
cl = (CardLayout)
(cardPanel.getLayout());

      Now, let’s see the significant steps involved in the process of running the CloudSim example.

  • We have to choose source package namely cloudreports.gui
Selection of Source Package
  • Then, we have to right click on CloudMainView.java under cloudreports.gui package
  • Following that, we have to select the “Run File” option to run the project
Selecting the Run File

           We hope that we have offered the essential data to run CloudSim packages, you guys can reach us at any time to get rid of your difficulties.

VM Migration

Key Services

  • Literature Survey
  • Research Proposal
  • System Development
  • AWS Integration
  • Algorithm Writing
  • Pesudocode
  • Paper Writing
  • Conference Paper
  • Thesis Writing
  • Dissertation Writing
  • MS Thesis
  • Assignments

Testimonials

I really appreciate your project development team. Since, your source codes are very easy to understand and execute it. Thank you!

- Wilson

Happy Customer Wilson

You’re amazing and great working with you! I am totally satisfied with your paper writing. Keep up the best service for scholars!

- Lewis

Happy Client Lewis

Thank you so much for my project support and you guys are well done in project explanation. I get a clear vision about it.

- Eliza

Satisfied Client Eliza

You’ve been so helpful because my project is based on the AWS and HDFS integration. Before my commitment with you, I’ve a lot of fear, but you people rocked on my project.

- Henry

Satisfied Customer Henry

Your project development is good and you made it so simple. Especially, codes are very new and running without any error.

- Frank

Much Satisfied Client Frank

You exactly did my project according to my demand. I tried many services, but I get the correct result from you. So surely I will keep working with you!

- Edwards

Happy cloud Computing Project Customer
Support 24x7