pull/56/head
liyong 4 years ago
parent a61ba7f3a7
commit 7ff20dc929

@ -6,7 +6,7 @@ import com.xxl.job.core.util.XxlJobRemotingUtil;
/** /**
* admin api test * admin api test
* *
* @author xuxueli 2017-07-28 22:14:52 * @author xuxueli 2017-07-28 22:14:52
*/ */
public class ExecutorBizClient implements ExecutorBiz { public class ExecutorBizClient implements ExecutorBiz {

@ -16,7 +16,7 @@ import org.slf4j.LoggerFactory;
import java.util.Date; import java.util.Date;
/** /**
* Created by xuxueli on 17/3/1. * Created by xuxueli on 17/3/1.
*/ */
public class ExecutorBizImpl implements ExecutorBiz { public class ExecutorBizImpl implements ExecutorBiz {

@ -180,6 +180,7 @@ public class XxlJobExecutor {
// ---------------------- job handler repository ---------------------- // ---------------------- job handler repository ----------------------
//存储业务对象 key为 xxljob.value
private static ConcurrentMap<String, IJobHandler> jobHandlerRepository = new ConcurrentHashMap<String, IJobHandler>(); private static ConcurrentMap<String, IJobHandler> jobHandlerRepository = new ConcurrentHashMap<String, IJobHandler>();
public static IJobHandler loadJobHandler(String name){ public static IJobHandler loadJobHandler(String name){
return jobHandlerRepository.get(name); return jobHandlerRepository.get(name);
@ -239,7 +240,6 @@ public class XxlJobExecutor {
} }
// registry jobhandler // registry jobhandler
//注册到map中
registJobHandler(name, new MethodJobHandler(bean, executeMethod, initMethod, destroyMethod)); registJobHandler(name, new MethodJobHandler(bean, executeMethod, initMethod, destroyMethod));
} }

@ -14,6 +14,7 @@ import java.util.Map;
/** /**
* xxl-job executor (for frameless) * xxl-job executor (for frameless)
* spring 使
* *
* @author xuxueli 2020-11-05 * @author xuxueli 2020-11-05
*/ */

Loading…
Cancel
Save