Examples of DbSynchronizationHandler


Examples of org.sonar.server.search.DbSynchronizationHandler

      return false;
    }

    @Override
    protected DbSynchronizationHandler getSynchronizationResultHandler(DbSession session, Map<String, String> params) {
      return new DbSynchronizationHandler(session, params) {

        @Override
        public void handleResult(ResultContext context) {
          synchronizedIssues++;
          counter.getAndIncrement();
View Full Code Here

Examples of org.sonar.server.search.DbSynchronizationHandler

    throw new IllegalStateException("Not implemented");
  }

  @Override
  protected DbSynchronizationHandler getSynchronizationResultHandler(final DbSession session, Map<String, String> params) {
    return new DbSynchronizationHandler(session, params) {
      private final Map<String, IssueAuthorizationDto> authorizationDtoMap = new HashMap<String, IssueAuthorizationDto>();

      @Override
      public void handleResult(ResultContext context) {
        Map<String, Object> row = (Map<String, Object>) context.getResultObject();
View Full Code Here

Examples of org.sonar.server.search.DbSynchronizationHandler

  }

  // Synchronization methods

  protected DbSynchronizationHandler getSynchronizationResultHandler(final DbSession session, Map<String, String> params) {
    return new DbSynchronizationHandler(session, params) {
      private int count = 0;

      @Override
      public void handleResult(ResultContext resultContext) {
        DTO dto = (DTO) resultContext.getResultObject();
View Full Code Here

Examples of org.sonar.server.search.DbSynchronizationHandler

    this.synchronizeAfter(session, date, Collections.<String, String>emptyMap());
  }

  @Override
  public void synchronizeAfter(final DbSession session, @Nullable Date date, Map<String, String> params) {
    DbSynchronizationHandler handler = getSynchronizationResultHandler(session, params);
    session.select(getSynchronizeStatementFQN(), getSynchronizationParams(date, params), handler);
    handler.enqueueCollected();
    session.enqueue(new RefreshIndex(this.getIndexType()));
    session.commit();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.