@Service @Scope(proxyMode=TARGET_CLASS) public class ClusterJobService extends BaseService<ClusterJob>
| 构造器和说明 |
|---|
ClusterJobService() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addJob(String jobCode,
String jobName,
String param)
添加任务:为集群所有机器添加。
|
ClusterJobDao |
getDao() |
void |
init()
初始化方法,外部请勿调用
|
void |
registerJobHandler(String jobCode,
java.util.function.Consumer<String> jobHandler)
注册任务执行器,一次性注册。
|
actionLogEnable, add, beforeUpdate, delete, delete, fillOtherFields, fillOtherFields, get, getByCode, getByCodeList, list, update@PostConstruct public void init()
public ClusterJobDao getDao()
getDao 在类中 BaseService<ClusterJob>public void addJob(String jobCode, String jobName, String param)
jobCode - jobName - param - public void registerJobHandler(String jobCode, java.util.function.Consumer<String> jobHandler)
addJob(String, String, String)添加任务jobCode - jobHandler - Copyright © 2022. All rights reserved.