public class XxlJobTrigger extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private static org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
XxlJobTrigger() |
| 限定符和类型 | 方法和说明 |
|---|---|
private static boolean |
isNumeric(String str) |
private static void |
processTrigger(JobGroup group,
JobInfo jobInfo,
int finalFailRetryCount,
TriggerTypeEnum triggerType,
int index,
int total) |
static com.xxl.job.core.biz.model.ReturnT<String> |
runExecutor(com.xxl.job.core.biz.model.TriggerParam triggerParam,
String address)
run executor
|
static void |
trigger(int jobId,
TriggerTypeEnum triggerType,
int failRetryCount,
String executorShardingParam,
String executorParam,
String addressList)
trigger job
|
public static void trigger(int jobId,
TriggerTypeEnum triggerType,
int failRetryCount,
String executorShardingParam,
String executorParam,
String addressList)
jobId - triggerType - failRetryCount - >=0: use this param
<0: use param from job info configexecutorShardingParam - executorParam - null: use job param
not null: cover job paramaddressList - null: use executor addressList
not null: coverprivate static boolean isNumeric(String str)
private static void processTrigger(JobGroup group, JobInfo jobInfo, int finalFailRetryCount, TriggerTypeEnum triggerType, int index, int total)
group - job group, registry list may be emptyjobInfo - finalFailRetryCount - triggerType - index - sharding indextotal - sharding indexCopyright © 2022. All rights reserved.