Authored by qinchao

java重启功能

... ... @@ -28,8 +28,8 @@ 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 * * * * ?")
/*private void fetchJavaProjectStauts() {
@Scheduled(cron = "0/30 * * * * ?")
private void fetchJavaProjectStauts() {
List<Project> projects=ProjectOnline.getJavaList();
for(Project project:projects){
List<JavaProjectStatus> statuses=getStatusInfos(project.getName());
... ... @@ -41,7 +41,7 @@ public class JavaProjectStatusLoaderTask {
}
map.put(project.getName(),statuses);
}
}*/
}
public List<JavaProjectStatus> getStatusInfosFromCache(String projectName){
Date now=new java.util.Date();
... ...