Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
livenson edited this page Jul 20, 2011 · 10 revisions

libcdmi-java is an client library for SNIA CDMI http://cdmi.sniacloud.com/ standard.

Currently supported features:

  • Blob operations (CDMI and non-CDMI object types);
  • Container operations (CDMI and non-CDMI object types);
  • Only basic CRUD operations are supported at the moment.

See README for instructions about building the library.

To see the roadmap and leave a feedback, please, use https://github.com/livenson/libcdmi-java/issues.

Sample Client

There's an example of using libcdmi-java in a client: https://github.com/livenson/libcdmi-java/blob/master/src/main/java/examples/CDMIClient.java.

Troubleshooting

1. Processing hangs.

Symptom: Processing hangs when using library functions many times in a row.

Reason: Max number of connections in HTTPClient's ConnectionManager is reached. Probably due to hanging connections.

Solution: In your code, whenever you are done with HttpResponse object, don't forget to call HTTPResponse.getEntity().consumeContent() function. Other alternatives (actually, better ones) are to use writeTo or consumed. More information: http://hc.apache.org/httpcomponents-client-ga/tutorial/html/fundamentals.html#d4e143

Clone this wiki locally