Class MetricsCacheUtils

java.lang.Object
eu.dnetlib.broker.common.metrics.MetricsCacheUtils

@Component public class MetricsCacheUtils extends Object
  • Field Details

  • Constructor Details

    • MetricsCacheUtils

      public MetricsCacheUtils()
  • Method Details

    • reportCacheEvict

      @Scheduled(fixedDelay=43200000L, initialDelay=500L) @CacheEvict(allEntries=true, value="broker_metrics_cache") public void reportCacheEvict()
    • totalEvents

      @Cacheable(value="broker_metrics_cache", key="#root.methodName") public double totalEvents()
    • countDatasourcesWithEvents

      @Cacheable(value="broker_metrics_cache", key="#root.methodName") public double countDatasourcesWithEvents()
    • countNotifications

      @Cacheable(value="broker_metrics_cache", key="#root.methodName") public double countNotifications()
    • countSuggestionNotifications

      @Cacheable(value="broker_metrics_cache", key="#root.methodName") public double countSuggestionNotifications()
    • countAlertNotifications

      @Cacheable(value="broker_metrics_cache", key="#root.methodName") public double countAlertNotifications()
    • countSubscriptions

      @Cacheable(value="broker_metrics_cache", key="#root.methodName") public double countSubscriptions()
    • countSubscribers

      @Cacheable(value="broker_metrics_cache", key="#root.methodName") public double countSubscribers()
    • lastUpdateInSeconds

      @Cacheable(value="broker_metrics_cache", key="#root.methodName") public double lastUpdateInSeconds()
    • countDatasourcesWithSubscriptions

      @Cacheable(value="broker_metrics_cache", key="#root.methodName") public double countDatasourcesWithSubscriptions()