|
|
|
@ -69,7 +69,12 @@ public class JobTriggerPoolHelper { |
|
|
|
|
/** |
|
|
|
|
* add trigger |
|
|
|
|
*/ |
|
|
|
|
public void addTrigger(final int jobId, final TriggerTypeEnum triggerType, final int failRetryCount, final String executorShardingParam, final String executorParam) { |
|
|
|
|
public void addTrigger(final int jobId, |
|
|
|
|
final TriggerTypeEnum triggerType, |
|
|
|
|
final int failRetryCount, |
|
|
|
|
final String executorShardingParam, |
|
|
|
|
final String executorParam, |
|
|
|
|
final String addressList) { |
|
|
|
|
|
|
|
|
|
// choose thread pool
|
|
|
|
|
ThreadPoolExecutor triggerPool_ = fastTriggerPool; |
|
|
|
@ -87,7 +92,7 @@ public class JobTriggerPoolHelper { |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
// do trigger
|
|
|
|
|
XxlJobTrigger.trigger(jobId, triggerType, failRetryCount, executorShardingParam, executorParam); |
|
|
|
|
XxlJobTrigger.trigger(jobId, triggerType, failRetryCount, executorShardingParam, executorParam, addressList); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
logger.error(e.getMessage(), e); |
|
|
|
|
} finally { |
|
|
|
@ -138,8 +143,8 @@ public class JobTriggerPoolHelper { |
|
|
|
|
* null: use job param |
|
|
|
|
* not null: cover job param |
|
|
|
|
*/ |
|
|
|
|
public static void trigger(int jobId, TriggerTypeEnum triggerType, int failRetryCount, String executorShardingParam, String executorParam) { |
|
|
|
|
helper.addTrigger(jobId, triggerType, failRetryCount, executorShardingParam, executorParam); |
|
|
|
|
public static void trigger(int jobId, TriggerTypeEnum triggerType, int failRetryCount, String executorShardingParam, String executorParam, String addressList) { |
|
|
|
|
helper.addTrigger(jobId, triggerType, failRetryCount, executorShardingParam, executorParam, addressList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|