-
Notifications
You must be signed in to change notification settings - Fork 2
Home
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.
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.
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