@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); } }
@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()); } }