This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 26bbdbd3 authored by Johannes Kainz's avatar Johannes Kainz
Browse files

changed monitoring job method

parent ed73e965
Branches
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
......@@ -104,13 +104,11 @@ public class MonitoringService {
}
/**
* exports the monitoring relevant metrics regularly
* <p></p>
* This is scheduled to get fired hourly
* Monitors metrics with an hourly cron job
*/
@Scheduled(cron = "0 30 * * * ?")
public void exportMonitoringMetrics() {
log.debug("Export monitoring relevant metrics");
public void monitorHourlyMetrics() {
log.debug("Started monitoring cron job");
this.setNumberUsers();
......@@ -124,6 +122,7 @@ public class MonitoringService {
} catch (IOException exception) {
log.warn("An IOException occurred\n" + Arrays.toString(exception.getStackTrace()));
}
log.debug("Finished monitoring cron job");
}
private void setNumberUsers() {
......@@ -306,5 +305,4 @@ public class MonitoringService {
searchResultList.forEach(searchResult -> exerciseIDs.add(searchResult.getExerciseId()));
return exerciseIDs;
}
//TODO: refactor !
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment