Ignore:
Timestamp:
01/28/15 14:47:04 (9 years ago)
Author:
emanuel.dima@uni-tuebingen.de
Message:
  1. alpha16: added version page and better statistics
File:
1 edited

Legend:

Unmodified
Added
Removed
  • SRUAggregator/trunk/src/main/java/eu/clarin/sru/fcs/aggregator/scan/ScanCrawlTask.java

    r5957 r5959  
    2121        private AtomicReference<Corpora> corporaAtom;
    2222        private File cachedCorpora;
    23         private AtomicReference<Statistics> statisticsAtom;
     23        private AtomicReference<Statistics> scanStatisticsAtom;
     24        private AtomicReference<Statistics> searchStatisticsAtom;
    2425        private String centerRegistryUrl;
    2526
     
    2728                        int cacheMaxDepth, EndpointFilter filter,
    2829                        AtomicReference<Corpora> corporaAtom, File cachedCorpora,
    29                         AtomicReference<Statistics> statisticsAtom
    30         ) {
     30                        AtomicReference<Statistics> scanStatisticsAtom,
     31                        AtomicReference<Statistics> searchStatisticsAtom
     32                        ) {
    3133                this.sruClient = sruClient;
    3234                this.centerRegistryUrl = centerRegistryUrl;
     
    3537                this.corporaAtom = corporaAtom;
    3638                this.cachedCorpora = cachedCorpora;
    37                 this.statisticsAtom = statisticsAtom;
     39                this.scanStatisticsAtom = scanStatisticsAtom;
     40                this.searchStatisticsAtom = searchStatisticsAtom;
    3841        }
    3942
     
    4548                        log.info("ScanCrawlTask: Initiating crawl");
    4649                        CenterRegistry centerRegistry = new CenterRegistryLive(centerRegistryUrl, filter);
    47                         centerRegistry.getCQLInstitutions().add(0,
    48                                         new Institution("test_IDS", null) {
    49                                                 {
    50                                                         addEndpoint("https://clarin.ids-mannheim.de/digibibsru-new");
    51                                                 }
    52                                         });
     50//                      centerRegistry.getCQLInstitutions().add(0,
     51//                                      new Institution("test_IDS", null) {
     52//                                              {
     53//                                                      addEndpoint("https://clarin.ids-mannheim.de/digibibsru-new");
     54//                                              }
     55//                                      });
    5356//                      CenterRegistry centerRegistry = new CenterRegistryForTesting();
    5457                        ScanCrawler scanCrawler = new ScanCrawler(centerRegistry, sruClient, cacheMaxDepth);
     
    5861
    5962                        corporaAtom.set(corpora);
    60                         statisticsAtom.set(scanCrawler.getStatistics());
     63                        scanStatisticsAtom.set(scanCrawler.getStatistics());
     64                        searchStatisticsAtom.set(new Statistics()); // reset search stats
    6165                        long time = System.currentTimeMillis() - time0;
    6266
Note: See TracChangeset for help on using the changeset viewer.