Setting up OCCI-Studio
Downloading OCCI-Studio
- Download the latest release of OCCI-Studio.
- Extract OCCI-Studio and start it.
Installing required plugins
To initialize the proposed OCCI extensions, the following plugins need to be added to the OCCI-Studio. These allow to correctly depict OCCI models in the textual and graphical editor. To Install plugins the following steps have to be performed:
- Navigate to: Help -> Install New Software...
- Press Add...
- Insert the location of the update site:
MoDMaCAO
The updatesite can be found at: http://c109-125.cloud.gwdg.de/. To install the plugin please deselect "Group items by category" and choose MoDMaCAO.
Gradle
To easily access our provided example install the gradle plugin within OCCI-Studio by following the instructions given here:
https://github.com/eclipse/buildship/blob/master/docs/user/Installation.md
Mocci
Finally, the Mocci plugin can be installed which registers the OCCI monitoring extension. Therefore, the following steps have to be performed:
- Navigate to https://rwm.pages.gwdg.de/de.ugoe.cs.rwm.mocci/model/index.html/:
- Press Download Eclipse Plugin Archive
- Save the updatesite.zip to any destination
- Then follow the steps to install the plugin given above, but system choose the location of the updatesite.zip
Alternatively, you can build the Eclipse plugin yourself by checking out the project and perform the following command on the mocci.model project:
gradle updateSiteZip
Visualizing the example
Now that the IDE has been installed and configured, the example model can now be loaded, visualized, and edited. The model can be found within the project under:
de.ugoe.cs.rwm.mocci/src/test/resources/occi/hadoopClusterNewExt.occic
Tree Editor
To check whether the installation and configuration of the IDE is successful the model can be opened in the textual editor:
- Right click the hadoopClusterNewExt.occic file
- Choose Open with... -> OCCI Model Editor
- If no problem occurs, all extensions are correctly loaded
Sirius Visualization
To visualize the model in an graphical editor it is most convenient to create a separate Sirius Modeling project. Therefore, the following steps have to be performed:
- File -> New -> Project... -> Sirius -> Modeling Project
- Name it MonitoringExample
- Copy the hadoopClusterNewExt.occic file into the Project
- Double click on representation.aird
- Press Add... in the Models section
- Choose Browse Workspace...
- Select hadoopClusterNewExt.occic
- Now the Model and its possible representations should been loaded (transparent)
- Under Representation doubleclick on OCCI Configuratrion
- Next choose Configuration diagram (0) (non-transparent)
- Select the Configuration element and press Finish
To reduce the size of the model visualization collapse the User_Data and SSH information of each Compute node. Thereafter, press arrange all in the editor. Now the cloud deployment is ready to be explored.