...
|
...
|
@@ -28,7 +28,7 @@ public class JavaProjectStatusLoaderTask { |
|
|
private static final ConcurrentHashMap<String,List<JavaProjectStatus>> map = new ConcurrentHashMap();
|
|
|
private SimpleDateFormat sDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
|
@Scheduled(cron = "0/30 * * * * ?")
|
|
|
/*@Scheduled(cron = "0/30 * * * * ?")
|
|
|
private void fetchJavaProjectStauts() {
|
|
|
List<Project> projects=ProjectOnline.getJavaList();
|
|
|
for(Project project:projects){
|
...
|
...
|
@@ -41,7 +41,7 @@ public class JavaProjectStatusLoaderTask { |
|
|
}
|
|
|
map.put(project.getName(),statuses);
|
|
|
}
|
|
|
}
|
|
|
}*/
|
|
|
|
|
|
public List<JavaProjectStatus> getStatusInfosFromCache(String projectName){
|
|
|
Date now=new java.util.Date();
|
...
|
...
|
|