How to Configure CloudAnalyst in Eclipse


Create New Java Project

New Java Project in Eclipse

New Java Project in Eclipse

Create Java Project in Eclipse

Create Java Project in Eclipse

New Java Project in Eclipse: Java Settings

New Java Project in Eclipse: Java Settings

Java™ Application Development on Linux® – Free 599 Page eBook

Enterprise Java Virtualization:

Understanding the TCO Implications

InfoWorld’s Java IDE Comparison Strategy Guide:

Java Essential Training

Apache Jakarta Commons: Reusable Java™ Components

Enabling Rapid ROI: With Java™ – Based Business Intelligence Applications:

Go to File->Import

New Java Project in Eclipse: Import Source Code from Existing Project

New Java Project in Eclipse: Import Source Code from Existing Project

New Java Project in Eclipse: Import resources from Local File System

New Java Project in Eclipse: Import resources from Local File System

Run CloudAnalyst in Eclipse

Run CloudAnalyst in Eclipse

Done!!!

CloudAnalyst GUI

CloudAnalyst GUI

Single Sign-On for Java and Web Applications

Bulletproof Java Code: A Practical Strategy for Developing Functional, Reliable, and Secure Java Code

Transforming a Generic Java IDE to Your Application Specific IDE:

The Java Virtual Appliance—No OS Required

BEA WebLogic® Operations Control: Application Virtualization for Enterprise Java

Enabling Rapid ROI: With Java™ – Based Business Intelligence Applications:

How to Run and Configure CloudAnalyst


  1. Download CloudAnalyst

http://www.cloudbus.org/cloudsim/CloudAnalyst.zi

2.       Extract Files from the Zip file which will give following folder structure

CloudAnalyst Folder Structure

CloudAnalyst Folder Structure

     If you want to Run from Command line then

Run CloudAnalyst from Command Line

Run CloudAnalyst from Command Line

1.       Or click on run.bat file

2.       Done!!!

Run CloudAnalyst from Command Line: Dashboard

Run CloudAnalyst from Command Line: Dashboard

1.       Click on Show Region Boundaries:

Run CloudAnalyst from Command Line: Dashboard - Regions

Run CloudAnalyst from Command Line: Dashboard – Regions

Java™ Application Development on Linux® – Free 599 Page eBook

Enterprise Java Virtualization:

Understanding the TCO Implications

InfoWorld’s Java IDE Comparison Strategy Guide:

Java Essential Training

Apache Jakarta Commons: Reusable Java™ Components

Enabling Rapid ROI: With Java™ – Based Business Intelligence Applications:

Click on Configure Simulation

CloudAnalyst - Configure Simulation

CloudAnalyst – Configure Simulation

Here you can configure:

·              Data Center Configuration

o   Physical Hardware Details of Data center

CloudAnalyst - Physical Hardware Details of Data center

CloudAnalyst – Physical Hardware Details of Data center

You will get:

CloudAnalyst - Data Center Configurations

CloudAnalyst – Data Center Configurations

CloudAnalyst - Data Center Configurations details

CloudAnalyst – Data Center Configurations details

CloudAnalyst - Data Center Configurations - Copy

CloudAnalyst – Data Center Configurations – Copy

·         Advanced

CloudAnalyst - Advanced Configurations

CloudAnalyst – Advanced Configurations

·         User Base: models a group of users and generates traffic representing the users.

·         Application Deployment Configurations (Cloudlets)

o   Service Broker Policy

CloudAnalyst - Service Broker Configurations

CloudAnalyst – Service Broker Configurations

CloudAnalyst - Main Configurations

CloudAnalyst – Main Configurations

1.       You can Save this Configuration as well in case you want to use it later. It is stored as .sim file. XML data is generated and saved as Sim file.

CloudAnalyst - Save Configurations

CloudAnalyst – Save Configurations

1.       Saved configuration can be loaded anytime easily into CloudAnalyst

CloudAnalyst - Load Configurations

CloudAnalyst – Load Configurations

So you need to enter data each time you want to run simulation.

1.       I have created 2 DC in different region, each with 20 physical host

CloudAnalyst - Configurations - Data Centers in different Regions

CloudAnalyst – Configurations – Data Centers in different Regions

CloudAnalyst - Configurations - Round Robin Load Balancing Policy

CloudAnalyst – Configurations – Round Robin Load Balancing Policy

6 User bases and each in different region; 25 VMs are allocated to fulfil requests from all user bases from both the Data Center

CloudAnalyst - Configurations - User Base and Regions

CloudAnalyst – Configurations – User Base and Regions

1.       Once your are done with Configuration; click on Done!!!

CloudAnalyst - Configurations - Internet Characteristics

CloudAnalyst – Configurations – Internet Characteristics

Click on

CloudAnalyst - Configure Internet Characteristics

CloudAnalyst – Configure Internet Characteristics

1.       Run Simulation

CloudAnalyst - Run Simulation

CloudAnalyst – Run Simulation

1.       Simulation Results Window will Open

CloudAnalyst - Simulation Results

CloudAnalyst – Simulation Results

Close it.

1.       Main Window will give all statistics

CloudAnalyst - Simulation Statistics

CloudAnalyst – Simulation Statistics

1.       If you will try to run Simulation again then it will give Error

CloudAnalyst - Simulation Error

CloudAnalyst – Simulation Error

CloudAnalyst - Restart Simulation Error

CloudAnalyst – Restart Simulation Error

1.       Click on Exit

1.       

Single Sign-On for Java and Web Applications

Bulletproof Java Code: A Practical Strategy for Developing Functional, Reliable, and Secure Java Code

Transforming a Generic Java IDE to Your Application Specific IDE:

The Java Virtual Appliance—No OS Required

BEA WebLogic® Operations Control: Application Virtualization for Enterprise Java

Enabling Rapid ROI: With Java™ – Based Business Intelligence Applications:

Sample Ant Build


Your first ANT build

 <!–?xml version=”1.0″?>

<project name=”Ant test project” default=”build” basedir=”.”>

<target name=”build” >

<javac srcdir=”src” destdir=”build/src” debug=”true” includes=”**/*.java“/>

</target>

</project>

First line of the build.xml file represents the document type declaration

Second line is comment entry.

Third line is the project tag. Each buildfile contains one project tag and all the instruction are written in the project tag.

The project tag:

<project name=”Ant test project” default=”build” basedir=”.”>  requires three attributes namely name, default and basedir.

Here is the description of the attributes:

Attribute             Description

name                    Represents the name of the project.

default                  Name of the default target to use when no target is supplied.

basedir                  Name of the base directory from which all path calculations are done.

All the attributes are required.

One project may contain one or more targets. In this example there is only one target.

<target name=”build” >

<javac srcdir=”src” destdir=”build/src” debug=”true” includes=”**/*.java”/>

</target>

Which uses task javac to compile the java files.

Here is the code of our AntTestExample.java file which is to be compiled by the Ant utility.

class AntTestExample{

public static void main (String args[]){

System.out.println(“This is Ant Test Example “);

}

}

Run the ANT file with ant command.

Above mentioned process compiles the file and places in the buildsrc directory.

Refer to examples

Java™ Application Development on Linux® – Free 599 Page eBook

Enterprise Java Virtualization:

Understanding the TCO Implications

InfoWorld’s Java IDE Comparison Strategy Guide:

Java Essential Training

Apache Jakarta Commons: Reusable Java™ Components

Enabling Rapid ROI: With Java™ – Based Business Intelligence Applications:

Single Sign-On for Java and Web Applications

Bulletproof Java Code: A Practical Strategy for Developing Functional, Reliable, and Secure Java Code

Transforming a Generic Java IDE to Your Application Specific IDE:

The Java Virtual Appliance—No OS Required

BEA WebLogic® Operations Control: Application Virtualization for Enterprise Java

Enabling Rapid ROI: With Java™ – Based Business Intelligence Applications:

Writing Custom Task in Ant


Writing Own Task

  • Create a Java class that extends org.apache.tools.ant.Task
  • For each attribute, write a setter method that is public void and takes a single argument
  • Write a public void execute() method, with no arguments, that throws a BuildException — this method implements the task itself

Refer to write own task for example.

Java™ Application Development on Linux® – Free 599 Page eBook

Enterprise Java Virtualization:

Understanding the TCO Implications

InfoWorld’s Java IDE Comparison Strategy Guide:

Java Essential Training

Apache Jakarta Commons: Reusable Java™ Components

Enabling Rapid ROI: With Java™ – Based Business Intelligence Applications:

Single Sign-On for Java and Web Applications

Bulletproof Java Code: A Practical Strategy for Developing Functional, Reliable, and Secure Java Code

Transforming a Generic Java IDE to Your Application Specific IDE:

The Java Virtual Appliance—No OS Required

BEA WebLogic® Operations Control: Application Virtualization for Enterprise Java

Enabling Rapid ROI: With Java™ – Based Business Intelligence Applications: