Project

General

Profile

« Previous | Next » 

Revision 59067

Added by Dimitris Pierrakos almost 4 years ago

Added LaReferencia Repos to WF

View differences:

UsageStatsExporter.java
23 23
        String portalLogPath = properties.getProperty("portal_LogPath");
24 24
        String portalMatomoID = properties.getProperty("portal_MatomoID");
25 25
        String irusUKBaseURL = properties.getProperty("IRUS_UK_BaseUrl");
26
        String lareferenciaLogPath = properties.getProperty("lareferenciaLogPath");
27
        String lareferenciaBaseURL=properties.getProperty("LaReferenciaBaseUrl");
28
        String lareferenciaAuthToken=properties.getProperty("LareferenciaAuthToken");
29

  
26 30
        
27 31
        //connect to DB
28 32
        ConnectDB.init(properties);
......
36 40
        PiwikStatsDB piwikstatsdb = new PiwikStatsDB(repoLogPath, portalLogPath);
37 41
        piwikstatsdb.setCounterRobotsURL(properties.getProperty("COUNTER_robots_Url"));
38 42
        piwikstatsdb.processLogs();
39
        log.info("process logs done");
43
        log.info("OpenAIRE logs done");
40 44

  
45
        LaReferenciaDownloadLogs lrf = new LaReferenciaDownloadLogs(lareferenciaBaseURL,lareferenciaAuthToken);
46
        lrf.GetLaReferenciaRepos(lareferenciaLogPath);
47
        LaReferenciaStats lastats = new LaReferenciaStats(lareferenciaLogPath);
48
        lastats.processLogs();
49
        log.info("LaReferencia logs done");
50

  
41 51
        IrusStats irusstats = new IrusStats(irusUKBaseURL);
42 52
        irusstats.processIrusRRReport();
43 53
        irusstats.irusStats();
44
        log.info("irus done");
54
        log.info("Irus-UK done");
45 55

  
46 56
        SarcStats sarcStats = new SarcStats();
47 57
        sarcStats.processSarc();
48 58
        sarcStats.sarcStats();
49
        log.info("sarc done");
59
        log.info("SARC-OJS done");
50 60

  
51 61
        //finalize usagestats
52 62
        piwikstatsdb.finalizeStats();

Also available in: Unified diff