private void publishDebugSessions()

in usage-statistics-impl/src/jetbrains/buildServer/usageStatistics/impl/providers/IDEFeaturesUsageStatisticsProvider.java [102:118]


  private void publishDebugSessions(@NotNull final UsageStatisticsPublisher publisher,
                                    @NotNull final UsageStatisticsPresentationManager presentationManager,
                                    @NotNull final String periodDescription,
                                    final long fromDate) {
    final String featureName = "Remote Debug";
    final String statisticId = makeId(periodDescription, featureName) + ".sessions";
    presentationManager.applyPresentation(statisticId, featureName + " (sessions)", myGroupName, null, null);
    ourRemoteDebugSessionsCountQuery.execute(mySQLRunner, new GenericQuery.ResultSetProcessor<Void>() {
      @Override
      public Void process(final ResultSet rs) throws SQLException {
        if (rs.next()) {
          publisher.publishStatistic(statisticId, rs.getInt(1));
        }
        return null;
      }
    }, fromDate);
  }