|
|
|
@ -1,11 +1,11 @@ |
|
|
|
|
package com.xxl.job.admin.controller; |
|
|
|
|
|
|
|
|
|
import com.xxl.job.admin.core.conf.XxlJobAdminConfig; |
|
|
|
|
import com.xxl.job.admin.core.model.XxlJobGroup; |
|
|
|
|
import com.xxl.job.admin.core.model.XxlJobRegistry; |
|
|
|
|
import com.xxl.job.admin.core.util.I18nUtil; |
|
|
|
|
import com.xxl.job.admin.dao.XxlJobGroupDao; |
|
|
|
|
import com.xxl.job.admin.dao.XxlJobInfoDao; |
|
|
|
|
import com.xxl.job.admin.dao.XxlJobRegistryDao; |
|
|
|
|
import com.xxl.job.core.biz.model.ReturnT; |
|
|
|
|
import com.xxl.job.core.enums.RegistryConfig; |
|
|
|
|
import org.springframework.stereotype.Controller; |
|
|
|
@ -31,6 +31,8 @@ public class JobGroupController { |
|
|
|
|
public XxlJobInfoDao xxlJobInfoDao; |
|
|
|
|
@Resource |
|
|
|
|
public XxlJobGroupDao xxlJobGroupDao; |
|
|
|
|
@Resource |
|
|
|
|
private XxlJobRegistryDao xxlJobRegistryDao; |
|
|
|
|
|
|
|
|
|
@RequestMapping |
|
|
|
|
public String index(Model model) { |
|
|
|
@ -117,7 +119,7 @@ public class JobGroupController { |
|
|
|
|
|
|
|
|
|
private List<String> findRegistryByAppName(String appNameParam){ |
|
|
|
|
HashMap<String, List<String>> appAddressMap = new HashMap<String, List<String>>(); |
|
|
|
|
List<XxlJobRegistry> list = XxlJobAdminConfig.getAdminConfig().getXxlJobRegistryDao().findAll(RegistryConfig.DEAD_TIMEOUT); |
|
|
|
|
List<XxlJobRegistry> list = xxlJobRegistryDao.findAll(RegistryConfig.DEAD_TIMEOUT); |
|
|
|
|
if (list != null) { |
|
|
|
|
for (XxlJobRegistry item: list) { |
|
|
|
|
if (RegistryConfig.RegistType.EXECUTOR.name().equals(item.getRegistryGroup())) { |
|
|
|
|