Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

CDMI JAVA

gholami edited this page May 25, 2011 · 2 revisions

Welcome to the libcdmi-java wiki!

LibCDMI-Java is an implementation of Cloud Data Management Interface (CDMI) version 1.0 developed at PDC Center for High Performance Computing as a part of Venus-C project.

Prerequisite:

To use this library, you should have following software installed:

  1. Java SE 6.0 (http://www.oracle.com/technetwork/java/javase/downloads/index.html)
  2. Maven 2.x (http://maven.apache.org/download.html)

Then you need to download the library by these commands:

$ git clone [email protected]:livenson/libcdmi-java.git $ cd libcdmi-java

VCDM

Enusre that your VCDM server and back ends are up and running.

Junit tests

If you intend to run the junit test cases, edit CDMIConnectionTest.java according to your settings: libcdmi-java/src/test/java/eu/venusc/cdmi/CDMIConnectionTest.java

Edit and save: //cdmiServer: url to your server cdmiServer = new URL("http://hostname:port"); creds: your username/password

$cd libcdmi-java/ $ mvn install

This'll produce a jar file called: libcdmi-1.0.jar in target folder: libcdmi/targets. This library can be imported by some applications.

Sample Client

There's an example client under libcdmi-java/src/main/java/CDMIClient.java. You can edit the backends according to your environment and run the program.

Clone this wiki locally