LOG.info("Measurement data compression starting at " + new Date(timeStart));
try {
StorageClientManager storageClientManager = LookupUtil.getStorageClientManager();
MetricsServer metricsServer = storageClientManager.getMetricsServer();
return metricsServer.calculateAggregates();
} catch (Exception e) {
LOG.error("Failed to compress measurement data. Cause: " + e, e);
return Collections.emptyList();
} finally {
long duration = System.currentTimeMillis() - timeStart;