More proper naming to methods

This commit is contained in:
Spyros Zoupanos 2020-09-13 15:01:29 +03:00
parent 95fee808fd
commit 3d5904fb41
2 changed files with 6 additions and 6 deletions

View File

@ -136,7 +136,7 @@ public class IrusStats {
ConnectDB.getConnection().close(); ConnectDB.getConnection().close();
} }
public void processIrusRRReport(String irusUKReportPath) throws Exception { public void getIrusRRReport(String irusUKReportPath) throws Exception {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("YYYY-MM"); SimpleDateFormat simpleDateFormat = new SimpleDateFormat("YYYY-MM");
String reportUrl = irusUKURL + "GetReport/?Report=RR1&Release=4&RequestorID=OpenAIRE&BeginDate=2016-01&EndDate=" String reportUrl = irusUKURL + "GetReport/?Report=RR1&Release=4&RequestorID=OpenAIRE&BeginDate=2016-01&EndDate="
+ simpleDateFormat.format(new Date()) + simpleDateFormat.format(new Date())
@ -166,7 +166,7 @@ public class IrusStats {
// System.out.println(i + ": " + opendoar.get("Value").toString()); // System.out.println(i + ": " + opendoar.get("Value").toString());
log.info(i + ": " + opendoar.get("Value").toString()); log.info(i + ": " + opendoar.get("Value").toString());
i++; i++;
processIrusIRReport(opendoar.get("Value").toString(), irusUKReportPath); getIrusIRReport(opendoar.get("Value").toString(), irusUKReportPath);
break; break;
} }
} }
@ -176,7 +176,7 @@ public class IrusStats {
System.out.println("====> (processIrusRRReport) Finished with report: " + reportUrl); System.out.println("====> (processIrusRRReport) Finished with report: " + reportUrl);
} }
private void processIrusIRReport(String opendoar, String irusUKReportPath) throws Exception { private void getIrusIRReport(String opendoar, String irusUKReportPath) throws Exception {
System.out.println("====> (processIrusIRReport) Getting report(s) with opendoar: " + opendoar); System.out.println("====> (processIrusIRReport) Getting report(s) with opendoar: " + opendoar);

View File

@ -57,13 +57,13 @@ public class UsageStatsExporter {
String cRobotsUrl = "https://raw.githubusercontent.com/atmire/COUNTER-Robots/master/COUNTER_Robots_list.json"; String cRobotsUrl = "https://raw.githubusercontent.com/atmire/COUNTER-Robots/master/COUNTER_Robots_list.json";
piwikstatsdb.setCounterRobotsURL(cRobotsUrl); piwikstatsdb.setCounterRobotsURL(cRobotsUrl);
System.out.println("====> Processing logs"); System.out.println("====> Processing logs");
// piwikstatsdb.processLogs(); piwikstatsdb.processLogs();
log.info("process logs done"); log.info("process logs done");
IrusStats irusstats = new IrusStats(irusUKBaseURL); IrusStats irusstats = new IrusStats(irusUKBaseURL);
irusstats.processIrusRRReport(irusUKReportPath); // irusstats.processIrusRRReport(irusUKReportPath);
// irusstats.irusStats(); irusstats.irusStats();
// log.info("irus done"); // log.info("irus done");
System.exit(0); System.exit(0);