CacheServiceProviderSpecification <String, Object>
cacheServiceProvider = new MapCompliantCacheServiceProvider
<String, Object> (completeCache);
QueryBuilder queryBuilder = new QueryBuilder (
restTemplate, "http://www.usaspending.gov/", cacheServiceProvider);
Monitor monitor = MonitorFactory.start(monKey);
Complete complete = null;
//for (int ctr = 0; ctr < 9; ctr++) {
//log.info("ctr: " + ctr);
complete =
queryBuilder
.fsrs()
.setFiscalYear("2000")
.setStateCode("TX")
.setDetail(Detail.complete)
.setMaxRecords(500)
.doGet(Complete.class);
String escapedUri = queryBuilder.getEscapedURI();
log.info ("uri:" + escapedUri + ", cache contains? " +
(completeCache.get(escapedUri) != null));
log.info ("JAMon (intermediate) report: " + monitor);