|
|
|
@ -58,6 +58,7 @@ public class MethodInvocationHarvester extends BasicHarvester {
|
|
|
|
|
|
|
|
|
|
SortedMap<Filter,SortedMap<Calendar,Info>> result = null;
|
|
|
|
|
List<Filter> filters = new ArrayList<>();
|
|
|
|
|
filters.add(new Filter(ServiceUsageRecord.SERVICE_NAME, DATAMINER_SERVICE_NAME));
|
|
|
|
|
|
|
|
|
|
Date newMethodInvocationHarvesterStartDate = DateUtils.getStartCalendar(2017, Calendar.DECEMBER, 31).getTime();
|
|
|
|
|
|
|
|
|
@ -67,7 +68,6 @@ public class MethodInvocationHarvester extends BasicHarvester {
|
|
|
|
|
AggregatedJobUsageRecord.class, temporalConstraint, filters, contexts, true);
|
|
|
|
|
} else {
|
|
|
|
|
// Before 31/12/2017 accounting Method Invocation using ServiceUsageRecord
|
|
|
|
|
filters.add(new Filter(ServiceUsageRecord.SERVICE_NAME, DATAMINER_SERVICE_NAME));
|
|
|
|
|
result = accountingPersistenceQuery.getContextTimeSeries(
|
|
|
|
|
AggregatedServiceUsageRecord.class, temporalConstraint, filters, contexts, true);
|
|
|
|
|
}
|
|
|
|
|