Package net.sf.collabreview.importing

Examples of net.sf.collabreview.importing.Importer$DefaultStateSave


    logger.debug("AuthorManager created by its factory");
    collabReview.setAuthorManager(authorManager);
  }

  private void configureImporter(ConfigurationConfigurableCollabReview collabReview, ConfigurationData config) throws Exception {
    Importer importer = new Importer(collabReview.getWorkerDaemon()); //((ImportWorkerFactory)getFactory(config)).create();
    collabReview.setImporter(importer);
    importer.setCollabReview(collabReview);
    ImportWorkerFactory factory = (ImportWorkerFactory) getFactory(config);
    factory.setCollabReview(collabReview);
    importer.setImportWorker(factory.create());
  }
View Full Code Here


   */
  private boolean terminate = false;

  public static void main(String[] args) {
    CollabReview collabReview = AutoConfigurator.newConfiguredApplication();
    Importer importer = collabReview.getImporter();
    importer.start();
    try {
      Thread.sleep(3600 * 1000);
    } catch (InterruptedException e) {
      logger.error("Interrupted", e);
    }
View Full Code Here

  @SuppressWarnings({"deprecation"})
  public static void main(String[] args) {
    CollabReview collabReview = AutoConfigurator.newConfiguredApplication();
    ArrayList<ImportProgressInfo> ipis = new ArrayList<ImportProgressInfo>();
    Importer importer = collabReview.getImporter();
    importer.start();
    long startTime = System.currentTimeMillis();
    ImportProgressInfo currentIpi = null;
    while (System.currentTimeMillis() < startTime + 10000) {
      ImportProgressInfo ipi = importer.getProgressInfo();
      if (!ipi.equals(currentIpi)) {
        currentIpi = ipi;
        ipis.add(ipi);
      }
      try {
        Thread.sleep(10);
      } catch (InterruptedException e) {
      }
    }
    importer.shutdown();
    for (ImportProgressInfo ipi : ipis) {
      logger.debug(ipi);
    }
    logger.info("The repository contains " + collabReview.getRepository().listAllArtifacts().size()
        + " artifacts, out of which " + collabReview.getRepository().listNonObsoleteArtifacts(null).size()
View Full Code Here

TOP

Related Classes of net.sf.collabreview.importing.Importer$DefaultStateSave

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.