Task #1594
Story #1378: Adding new object formats shouldn't require buildout
Add an ObjectFormatCache to d1_libclient_java
Status:
Closed
Priority:
Normal
Assignee:
Category:
d1_libclient_java
Target version:
Start date:
2011-05-25
Due date:
% Done:
100%
Milestone:
Product Version:
*
Story Points:
Sprint:
Description
We decided that the object format lookup functionality should be moved into d1_libclient_java. The ObjectFormatCache will wrap the ObjectFormatList that comes either from a CN call to /formats, or from a fallback call to ObjectFormatDiskCache to get a minimal list. The ObjectFormatCache will index the ObjectFormatList as a hash of ObjectFormatIdentifier/ObjectFormat pairs.
History
#1 Updated by Chris Jones over 13 years ago
- Assignee set to Chris Jones
#2 Updated by Chris Jones over 13 years ago
- Category set to d1_libclient_java
#3 Updated by Chris Jones over 13 years ago
- Status changed from In Progress to Closed
The ObjectFormatCache in d1_libclient_java now provides static methods to listFormats() and getFormat(fmtid), and getFormat(fmtidStr). The format list will either come from the CN /formats call, or fall back to the on-disk cache version.