Ejemplo n.º 1
0
  @Override
  public void beginScan(ManagedRepository repository, Date whenGathered) throws ConsumerException {
    this.repository = repository;
    managedRepository = new File(repository.getLocation());

    try {
      log.info("Creating indexing context for repo : {}", repository.getId());
      indexingContext = managedRepositoryAdmin.createIndexContext(repository);
    } catch (RepositoryAdminException e) {
      throw new ConsumerException(e.getMessage(), e);
    }
  }
Ejemplo n.º 2
0
 @Override
 public void beginScan(
     ManagedRepository repository, Date whenGathered, boolean executeOnEntireRepo)
     throws ConsumerException {
   if (executeOnEntireRepo) {
     beginScan(repository, whenGathered);
   } else {
     this.repository = repository;
     managedRepository = new File(repository.getLocation());
   }
 }