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

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

changed @scheduled annotation and renamed method searchAll to searchAllPublicResults

parent cc8a9e8b
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
...@@ -106,9 +106,9 @@ public class MonitoringService { ...@@ -106,9 +106,9 @@ public class MonitoringService {
/** /**
* exports the monitoring relevant metrics regularly * exports the monitoring relevant metrics regularly
* <p></p> * <p></p>
* This is scheduled to get fired every minute (for testing reasons) * This is scheduled to get fired hourly
*/ */
@Scheduled(cron = "30 * * * * ?") @Scheduled(cron = "0 30 * * * ?")
public void exportMonitoringMetrics() { public void exportMonitoringMetrics() {
log.debug("Export monitoring relevant metrics"); log.debug("Export monitoring relevant metrics");
...@@ -289,7 +289,7 @@ public class MonitoringService { ...@@ -289,7 +289,7 @@ public class MonitoringService {
* @throws IOException exception for timeout etc. * @throws IOException exception for timeout etc.
*/ */
private SearchResultsDTO getAllSearchResults() throws IOException { private SearchResultsDTO getAllSearchResults() throws IOException {
return this.searchService.searchAll(); return this.searchService.searchAllPublicResults();
} }
/** /**
......
...@@ -525,14 +525,14 @@ public class SearchService { ...@@ -525,14 +525,14 @@ public class SearchService {
} }
/** /**
* Method to search for all exercises with an empty search query * Method to search for all public exercises.
* and without a specified user. * Searches all public exercises with an empty search query and without a specified user.
* *
* @return the search result page DTO * @return the search result page DTO
* @throws IOException * @throws IOException
*/ */
public SearchResultsDTO searchAll() throws IOException { public SearchResultsDTO searchAllPublicResults() throws IOException {
log.debug("Search request to find all exercises"); log.debug("Search request to find all public exercises");
final SearchInputMetadataDTO emptySearchMetadata = new SearchInputMetadataDTO(null, null, null, null, null, null); final SearchInputMetadataDTO emptySearchMetadata = new SearchInputMetadataDTO(null, null, null, null, null, null);
SearchInputDTO emptySearchQuery = new SearchInputDTO(null, emptySearchMetadata, null, null, null, 0); SearchInputDTO emptySearchQuery = new SearchInputDTO(null, emptySearchMetadata, null, null, null, 0);
......
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