SIROCCO :: CIMI :: Client

The OW2 Consortium is an open source community committed to making available to everyone the best and most reliable middleware technology, including generic enterprise applications and cloud computing technologies. The mission of the OW2 Consortium is to i) develop open source code for middleware, generic enterprise applications and cloud computing and ii) to foster a vibrant community and business ecosystem.

Лицензия

Лицензия

Категории

Категории

CLI Взаимодействие с пользователем
Группа

Группа

org.ow2.sirocco.cimi
Идентификатор

Идентификатор

sirocco-cimi-client
Последняя версия

Последняя версия

0.6.5
Дата

Дата

Тип

Тип

zip
Описание

Описание

SIROCCO :: CIMI :: Client
The OW2 Consortium is an open source community committed to making available to everyone the best and most reliable middleware technology, including generic enterprise applications and cloud computing technologies. The mission of the OW2 Consortium is to i) develop open source code for middleware, generic enterprise applications and cloud computing and ii) to foster a vibrant community and business ecosystem.
Организация-разработчик

Организация-разработчик

OW2 Consortium
Система контроля версий

Система контроля версий

https://github.com/ow2-sirocco/sirocco-cimi-client

Скачать sirocco-cimi-client

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

  • sirocco-cimi-java-sdk
  • sirocco-cimi-command-line-tools

Sirocco DMTF CIMI Java SDK and commmand-line tools

Can be used with any CIMI compliant provider.

Java Client example

// machine creation

CimiClient cimiClient = CimiClient.login(cimiEndpointUrl, login,password);
MachineCreate machineCreate = new MachineCreate();
MachineTemplate machineTemplate = new MachineTemplate();
machineTemplate.setMachineConfigRef(configId);
machineTemplate.setMachineImageRef(imageId);
machineTemplate.setCredentialRef(credId);
machineCreate.setMachineTemplate(machineTemplate);
machineCreate.setName("myMachine");
machineCreate.setDescription("a test machine");
CreateResult<Machine> result = Machine.createMachine(cimiClient,machineCreate);
String machineId=result.getResource().getId();
System.out.println("Creating machine "+machineId);
result.getJob().waitForCompletion(60, TimeUnit.SECONDS);
			
Machine machine=Machine.getMachineByReference(cimiClient, machineId);
			
for(MachineNetworkInterface nic: machine.getNetworkInterfaces()) {
   System.out.println("IP address: "+nic.getAddresses().get(0));
}

Command-line tools example

cimiclient machineconfig-list -select name,cpu,memory
+-------------------------------------------+--------+---+------+
|id                                         |name    |cpu|memory|
+-------------------------------------------+--------+---+------+
|http://myprovider.com/cimi/machineConfigs/1|micro   |1  |630 MB|
|http://myprovider.com/cimi/machineConfigs/2|tiny    |1  |512 MB|
|http://myprovider.com/cimi/machineConfigs/3|small   |2  |2 GB  |
+-------------------------------------------+--------+---+------+

cimiclient  machineimage-list -select id,description -first 1 -last 4
+------------------------------------------+-----------------------------------+
|id                                        |description                        |
+------------------------------------------+-----------------------------------+
|http://myprovider.com/cimi/machineImages/1|Ubuntu Oneiric 11.10 Server 64 bits|
|http://myprovider.com/cimi/machineImages/2|Ubuntu 11.04 server 64bits         |
|http://myprovider.com/cimi/machineImages/3|Debian 5.0 32 bits                 |
|http://myprovider.com/cimi/machineImages/4|LAMP stack on Debian 5.0           |
+------------------------------------------+-----------------------------------+

More info

org.ow2.sirocco.cimi

OW2 Sirocco

Версии библиотеки

Версия
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0