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

com.nb6868.onex.job.JobConst Maven / Gradle / Ivy

There is a newer version: 4.2.3
Show newest version
package com.nb6868.onex.job;

/**
 * 定时任务相关常量
 *
 * @author Charles [email protected]
 */
public interface JobConst {

    /**
     * 定时任务状态
     */
    enum JobState {
        /**
         * 暂停
         */
        PAUSE(0),
        /**
         * 正常
         */
        NORMAL(1);

        private int value;

        JobState(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

    /**
     * 任务日志状态
     */
    enum JobLogState {
        /**
         * 初始化
         */
        INIT(0),
        /**
         * 开始运行
         */
        START(1),
        /**
         * 运行中
         */
        RUNNING(10),
        /**
         * 任务完成
         */
        COMPLETED(100),
        /**
         * 取消
         */
        NORMAL(-1),
        /**
         * 出现错误
         */
        ERROR(-100);

        private int value;

        JobLogState(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy