@PostConstruct void init() { List<Application> applications = applicationService.findValidateApplication(); for (Application application : applications) { execute(application); } }
public List<UrlResponseTime> queryUrlResponseTimesFromCatch(String applicationId) { List<UrlResponseTime> urlResponseTimes = urlResponseTimeCache.get(applicationId); if (urlResponseTimes == null) { urlResponseTimes = queryUrlResponseTimes(applicationId); urlResponseTimeCache.put(applicationId, urlResponseTimes); execute(applicationService.findApplication(applicationId)); } return urlResponseTimes; }