Showing
1 changed file
with
3 additions
and
3 deletions
@@ -28,8 +28,8 @@ public class JavaProjectStatusLoaderTask { | @@ -28,8 +28,8 @@ public class JavaProjectStatusLoaderTask { | ||
28 | private static final ConcurrentHashMap<String,List<JavaProjectStatus>> map = new ConcurrentHashMap(); | 28 | private static final ConcurrentHashMap<String,List<JavaProjectStatus>> map = new ConcurrentHashMap(); |
29 | private SimpleDateFormat sDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); | 29 | private SimpleDateFormat sDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
30 | 30 | ||
31 | - //@Scheduled(cron = "0/30 * * * * ?") | ||
32 | - /*private void fetchJavaProjectStauts() { | 31 | + @Scheduled(cron = "0/30 * * * * ?") |
32 | + private void fetchJavaProjectStauts() { | ||
33 | List<Project> projects=ProjectOnline.getJavaList(); | 33 | List<Project> projects=ProjectOnline.getJavaList(); |
34 | for(Project project:projects){ | 34 | for(Project project:projects){ |
35 | List<JavaProjectStatus> statuses=getStatusInfos(project.getName()); | 35 | List<JavaProjectStatus> statuses=getStatusInfos(project.getName()); |
@@ -41,7 +41,7 @@ public class JavaProjectStatusLoaderTask { | @@ -41,7 +41,7 @@ public class JavaProjectStatusLoaderTask { | ||
41 | } | 41 | } |
42 | map.put(project.getName(),statuses); | 42 | map.put(project.getName(),statuses); |
43 | } | 43 | } |
44 | - }*/ | 44 | + } |
45 | 45 | ||
46 | public List<JavaProjectStatus> getStatusInfosFromCache(String projectName){ | 46 | public List<JavaProjectStatus> getStatusInfosFromCache(String projectName){ |
47 | Date now=new java.util.Date(); | 47 | Date now=new java.util.Date(); |
-
Please register or login to post a comment