public void run()

in usage-statistics-impl/src/jetbrains/buildServer/usageStatistics/impl/UsageStatisticsReportingScheduler.java [45:61]


  public void run() {
    try {
      if (mySettingsPersistor.loadSettings().isReportingEnabled()) {
        final Date lastReportingDate = myCommonDataPersistor.getLastReportingDate();
        final long reportingPeriod = getReportingPeriod();
        if (lastReportingDate == null || Dates.now().after(Dates.after(lastReportingDate, reportingPeriod))) {
          if (myStatisticsReporter.reportStatistics(reportingPeriod)) {
            myCommonDataPersistor.setLastReportingDate(Dates.now());
            LOG.debug("Usage statistics was successfully reported to JetBrains.");
          }
        }
      }
    }
    catch (final Throwable e) {
      LOG.infoAndDebugDetails("Error collecting/reporting usage statistics: ", e);
    }
  }