Skip to content

Commit

Permalink
捕获异常:索引定时调度任务
Browse files Browse the repository at this point in the history
  • Loading branch information
ysc committed Apr 8, 2013
1 parent f367cba commit d2eda71
Showing 1 changed file with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,19 @@ public class SetupAction extends ExtJSActionSupport {

public String query(){
Map map=new HashMap();
IndexScheduleConfig config=indexSchedulerService.getIndexScheduleConfig();

if(config!=null && config.isEnabled()){
map.put("state", "定时重建索引任务执行频率为每天,时间(24小时制)"+config.getScheduleHour()+":"+config.getScheduleMinute());
map.put("hour",config.getScheduleHour());
map.put("minute", config.getScheduleMinute());
try{
IndexScheduleConfig config=indexSchedulerService.getIndexScheduleConfig();

if(config!=null && config.isEnabled()){
map.put("state", "定时重建索引任务执行频率为每天,时间(24小时制)"+config.getScheduleHour()+":"+config.getScheduleMinute());
map.put("hour",config.getScheduleHour());
map.put("minute", config.getScheduleMinute());

}else{
}else{
map.put("state", "无定时调度任务");
}
}catch(Exception e){
log.error("无定时调度任务", e);
map.put("state", "无定时调度任务");
}

Expand Down

0 comments on commit d2eda71

Please sign in to comment.