Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Download

Download all of the clients listed below from the Downloads page

Available clients

StoreClient

DuraCloud provides access to files stored in cloud storage systems through an application called DuraStore. DuraStore is installed and running on your DuraCloud instance and can be accessed via a REST interface. In order to aid Java developers in communicating with DuraStore, a Java client, called StoreClient was written.

ReportClient

DuraCloud provides reporting capabilities which assist in understanding and managing the content stored in DuraCloud and services run through DuraCloud. These capabilities are included as part of an application called DuraBoss. DuraBoss is installed and running on your DuraCloud instance and the reporting capabilities can be accessed via a REST interface. In order to aid Java developers in communicating with the reporting features of DuraBoss, a Java client, called ReportClient was written.

Using the clients

...

Using the client

To use the StoreClinet, you will need to include their the necessary dependencies. This is best done using Maven, as follows:

...

Code Block
<dependency>
  <groupId>org.duracloud</groupId>
  <artifactId>storeclient</artifactId>
  <version>{duracloud-version}</version>
</dependency>

ReportClient

Code Block
<dependency>
  <groupId>org.duracloud</groupId>
  <artifactId>reportclient</artifactId>
  <version>{duracloud-version}</version>
</dependency>

...

Example code

StoreClient

An example Maven-based project which provides examples for using the storeclient can be found on Github here: https://github.com/duracloud/rest-client-example

ReportClient

An example Java class has been provided to assist in set up and testing, as well as a starting point for writing your client code. The example client (found in the download package under /resources) includes a simple main class which performs a subset of calls the client is capable of performing, and printing information to the console. To run an example:

...