JobClientOperatorService.java 1022 Bytes
package com.yoho.quartz.job;

import com.yoho.quartz.domain.JobDetail;
import com.yoho.quartz.exception.JobException;

/**
 * Author:yanzhang.fu
 * Date:2018/2/26
 * Description:
 * Modified By:
 **/
public interface JobClientOperatorService {

    /**
     * 任务入库
     *
     * @param jobDetail
     */
    void createJob(JobDetail jobDetail , String channel) throws JobException;

    /**
     * 修改job
     *
     * @param jobDetail
     * @throws JobException
     */
    void updateJob(JobDetail jobDetail) throws JobException;

    /**
     * 暂停Job
     *
     * @param jobDetail
     * @throws JobException
     */
    void pauseJob(JobDetail jobDetail) throws JobException;

    /**
     * 启动任务
     *
     * @param jobDetail
     * @throws JobException
     */
    void startJob(JobDetail jobDetail) throws JobException;

    /**
     * 删除任务,为软删除
     * @param jobDetail
     * @throws JobException
     */
    void deleteJob(JobDetail jobDetail) throws JobException;
}