Project

General

Profile

« Previous | Next » 

Revision 33147

Added by Eri Katsari almost 10 years ago

View differences:

modules/uoa-stats-service/trunk/src/main/java/eu/dnetlib/data/statsmanager/StatsManagerServiceBlackboardHandler.java
36 36
                // TODO update job status
37 37
                StringWriter sw = new StringWriter();
38 38
                JAXBContext.newInstance(ValidationReport.class).createMarshaller().marshal(report, sw);
39

  
40 39
                job.getParameters().put("report", sw.toString());
41 40
            } else if (action.equals("refreshCache")) {
42 41
                statsManager.refreshCache();
43 42
            } else if (action.equals("refreshNums")) {
44
                //statsManager.promoteShadowSchema();
43
                statsManager.refreshNumbers();
45 44
            } else if (action.equals("refreshCharts")) {
46
                //statsManager.promoteShadowSchema();
45
               statsManager.refreshCharts();
47 46
            } else if (action.equals("promoteShadow")) {
48 47
                statsManager.promoteShadowSchema();
49
            } else if (action.equals("promoteShadowCache")) {
48
            } else if (action.equals("promoteNums")) {
49
                  statsManager.promoteShadowNumbers();
50
            } else if (action.equals("promoteCharts")) {
51
                statsManager.promoteShadowCharts();
52
            } else if (action.equals("promoteAllCache")) {
50 53
                statsManager.promoteShadowCache();
51
            } else if (action.equals("'promoteNums")) {
52
                // statsManager.promoteShadowCache();
53
            } else if (action.equals("promoteCharts")) {
54
                // statsManager.promoteShadowCache();
55
            } else if (action.equals("promoteShadowCache")) {
56
                //statsManager.promoteShadowCache();
57 54
            } else if (action.equals("restore")) {
58
                statsManager.promoteShadowCache();
55
                statsManager.restoreCache();
59 56
            } else if (action.equals("backup")) {
60
                statsManager.promoteShadowCache();
57
                statsManager.backupCache();
61 58
            } else if (action.equals("migrate")) {
62
                statsManager.promoteShadowCache();
63
            } else {
59
                statsManager.migrateCache();
60
            } 
61
        } else if (action.equals("updateDBPath")) {
62
            statsManager.updateDBPath(job.getParameters().get())
63
        } else {
64
         
65
            else {
64 66
                throw new Exception("Don't know what to do with " + action);
65 67
            }
66 68

  

Also available in: Unified diff