Package org.sonar.server.search.action

Examples of org.sonar.server.search.action.RefreshIndex


            batchSession.enqueue(new InsertDto<IssueDto>(IndexDefinition.ISSUES.getIndexType(), newIssue(issueIndex, file, project, rules.next()), false));
            counter.getAndIncrement();
          }
        }
      }
      batchSession.enqueue(new RefreshIndex(IndexDefinition.ISSUES.getIndexType()));
      batchSession.commit();
      long stop = System.currentTimeMillis();
      progressTask.log();

      assertThat(issueIndex.countAll()).isEqualTo(ISSUE_COUNT);
View Full Code Here


          .setName("File " + index)
          .setLongName("File " + index);
        componentsByProject.put(project, file);
      }
    }
    batchSession.enqueue(new RefreshIndex(IndexDefinition.ISSUES_AUTHORIZATION.getIndexType()));
    batchSession.commit();
    LOGGER.info("Generated data in {} ms", System.currentTimeMillis() - start);
  }
View Full Code Here

TOP

Related Classes of org.sonar.server.search.action.RefreshIndex

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.