SIROCCO :: CIMI :: Java :: SDK

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.

Лицензия

Лицензия

Категории

Категории

Java Языки программирования
Группа

Группа

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

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

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

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

0.6.5
Дата

Дата

Тип

Тип

jar
Описание

Описание

SIROCCO :: CIMI :: Java :: SDK
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

Скачать sirocco-cimi-java-sdk

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.ow2.sirocco.cimi/sirocco-cimi-java-sdk/ -->
<dependency>
    <groupId>org.ow2.sirocco.cimi</groupId>
    <artifactId>sirocco-cimi-java-sdk</artifactId>
    <version>0.6.5</version>
</dependency>
// https://jarcasting.com/artifacts/org.ow2.sirocco.cimi/sirocco-cimi-java-sdk/
implementation 'org.ow2.sirocco.cimi:sirocco-cimi-java-sdk:0.6.5'
// https://jarcasting.com/artifacts/org.ow2.sirocco.cimi/sirocco-cimi-java-sdk/
implementation ("org.ow2.sirocco.cimi:sirocco-cimi-java-sdk:0.6.5")
'org.ow2.sirocco.cimi:sirocco-cimi-java-sdk:jar:0.6.5'
<dependency org="org.ow2.sirocco.cimi" name="sirocco-cimi-java-sdk" rev="0.6.5">
  <artifact name="sirocco-cimi-java-sdk" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.ow2.sirocco.cimi', module='sirocco-cimi-java-sdk', version='0.6.5')
)
libraryDependencies += "org.ow2.sirocco.cimi" % "sirocco-cimi-java-sdk" % "0.6.5"
[org.ow2.sirocco.cimi/sirocco-cimi-java-sdk "0.6.5"]

Зависимости

compile (6)

Идентификатор библиотеки Тип Версия
org.ow2.sirocco.cimi : sirocco-cimi-api-server-impl jar 0.6.4
com.sun.jersey : jersey-client jar 1.12
com.sun.jersey.contribs : jersey-apache-client jar 1.16
commons-httpclient : commons-httpclient jar 3.1
com.sun.jersey : jersey-json jar 1.12
javax.validation : validation-api jar 1.0.0.GA

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.7

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

Данный проект не имеет модулей.

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