APISonar


org.sonar.core.util.ProgressLogger.log

> org > sonar > core > util > ProgressLogger > log
org APIs sonar APIs core APIs util APIs ProgressLogger APIs log APIs

Example 1
private final ProgressLogger progress = ProgressLogger.create(getClass(), counter);

  public void execute(MultiHandler handler) throws SQLException {
    checkState(select != null && !updates.isEmpty(), "SELECT or UPDATE(s) requests are not defined");

    progress.start();
    try {
      select.scroll(row -> callMultiHandler(handler, updates, row));
      closeStatements();

      // log the total number of processed rows
      progress.log();
    } finally {
      progress.stop();
    }
  }