提交 | 用户 | 时间
|
722af2
|
1 |
package com.xxl.job.admin.core.route; |
X |
2 |
|
|
3 |
import com.xxl.job.core.biz.model.ReturnT; |
|
4 |
import com.xxl.job.core.biz.model.TriggerParam; |
|
5 |
import org.slf4j.Logger; |
|
6 |
import org.slf4j.LoggerFactory; |
|
7 |
|
|
8 |
import java.util.List; |
|
9 |
|
|
10 |
/** |
|
11 |
* Created by xuxueli on 17/3/10. |
|
12 |
*/ |
|
13 |
public abstract class ExecutorRouter { |
|
14 |
protected static Logger logger = LoggerFactory.getLogger(ExecutorRouter.class); |
|
15 |
|
|
16 |
/** |
|
17 |
* route address |
|
18 |
* |
|
19 |
* @param addressList |
|
20 |
* @return ReturnT.content=address |
|
21 |
*/ |
|
22 |
public abstract ReturnT<String> route(TriggerParam triggerParam, List<String> addressList); |
|
23 |
|
|
24 |
} |