All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.redkalex.scheduled.xxljob.XxljobScheduledProvider Maven / Gradle / Ivy

There is a newer version: 2.7.7
Show newest version
/*
 *
 */
package org.redkalex.scheduled.xxljob;

import org.redkale.util.AnyValue;
import org.redkale.scheduled.ScheduledManager;
import org.redkale.scheduled.spi.ScheduledManagerProvider;

/** @author zhangjx */
public class XxljobScheduledProvider implements ScheduledManagerProvider {

    /**
     * <xxljob addresses="http://localhost:8080/xxl-job-admin" executorName="xxx" ip="127.0.0.1" port="5678"
     * accessToken="default_token" />
     *
     * @param config 参数
     * @return 是否适配xxljob
     */
    @Override
    public boolean acceptsConf(AnyValue config) {
        return config != null && config.getAnyValue("xxljob") != null;
    }

    @Override
    public ScheduledManager createInstance() {
        return new XxljobScheduledManager(null);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy