log.debug("Cache clean up task still running for layer '" + layerName
+ "'. Ignoring it for this run.");
continue;
}
final LayerQuota definedQuotaForLayer = quotaConfig.layerQuota(layerName);
final ExpirationPolicy policy = definedQuotaForLayer.getExpirationPolicyName();
final Quota quota = definedQuotaForLayer.getQuota();
final Quota usedQuota = monitor.getUsedQuotaByLayerName(layerName);
Quota excedent = usedQuota.difference(quota);
if (excedent.getBytes().compareTo(BigInteger.ZERO) > 0) {
log.info("Layer '" + layerName + "' exceeds its quota of " + quota.toNiceString()