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

cn.wizzer.app.task.modules.services.TaskPlatformService Maven / Gradle / Ivy

There is a newer version: 5.2.8-zookeeper
Show newest version
package cn.wizzer.app.task.modules.services;

import java.util.List;

/**
 * Created by wizzer on 2018/3/19.
 */
public interface TaskPlatformService {
    /**
     * 判断任务是否存在
     *
     * @param jobName
     * @param jobGroup
     * @return
     */
    boolean isExist(String jobName, String jobGroup);

    /**
     * 添加新任务
     *
     * @param jobName
     * @param jobGroup
     * @param className
     * @param cron
     * @param comment
     * @param dataMap
     */
    void add(String jobName, String jobGroup, String className, String cron, String comment, String dataMap);

    /**
     * 删除任务
     *
     * @param jobName
     * @param jobGroup
     * @return
     */
    boolean delete(String jobName, String jobGroup);

    /**
     * 清除所有任务
     */
    void clear();

    /**
     * 获取cron表达式最近执行时间
     *
     * @param cronExpression
     * @return
     */
    List getCronExeTimes(String cronExpression) throws Exception;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy