A doozer client for java to access the highly-available doozerd programmatically from your java application.
import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;
import com.cloudcontrol.doozer4j.DoozerClient;
import com.cloudcontrol.doozer4j.IDoozerClient;
[...]
private String host = "localhost";
private int port = 8046
[...]
InetAddress doozerd = InetAddress.getByName(host)
IDoozerClient doozerClient = new DoozerClient(doozerd, port);
doozerClient.add("/my/first/file", "contentOfTheFile");
[...]
You will need following:
Install via your package manager, otherwise get the libraries.
Descriptions can be found here:
For Maven: Building a Project with Maven
-
Clone this project
$ git clone git@github.com:cloudControl/doozer4j.git
-
Change into the directory:
$ cd doozer4j
-
Run maven:
$ mvn install
Or if you use any derivate of eclipse/Equinox
$ mvn install eclipse:eclipse
This will fetch all dependencies.
Eclipse:
$ eclipse create-src