Package org.sonar.server.search

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


    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

  }

  // 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

    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

Related Classes of org.sonar.server.search.DbSynchronizationHandler

Copyright © 2018 www.massapicom. 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.