com.github.hengboy.job.schedule.store.Constants Maven / Gradle / Ivy
/*
* Copyright [2019] [恒宇少年 - 于起宇]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.hengboy.job.schedule.store;
/**
* 存储方式用到的常量信息
* 包含表名、列名等相关配置
*
* @author:恒宇少年 - 于起宇
*
* DateTime:2019-01-28 14:29
* Blog:http://blog.yuqiyu.com
* WebSite:http://www.jianshu.com/u/092df3f77bca
* Gitee:https://gitee.com/hengboy
* GitHub:https://github.com/hengyuboy
*/
public interface Constants {
/*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*
* Constants.
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
/**
* 数据表前缀
*/
String DEFAULT_TABLE_PREFIX = "MICRO_JOB_";
/*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*
* Tables.
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
/**
* 任务执行日志
*/
String TABLE_EXECUTE_LOG = "EXECUTE_LOG";
/**
* 任务执行队列
*/
String TABLE_EXECUTE_QUEUE = "EXECUTE_QUEUE";
/**
* 任务执行调度器
*/
String TABLE_EXECUTE_SCHEDULE = "EXECUTE_SCHEDULE";
/*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*
* Table Execute Log.
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
/**
* 任务执行日志主键
*/
String COLUMN_EXECUTE_LOG_JEL_ID = "JEL_ID";
/**
* 任务执行所属调度器主键
*/
String COLUMN_EXECUTE_LOG_JEL_SCHEDULE_ID = "JEL_SCHEDULE_ID";
/**
* 任务所属任务队列主键
*/
String COLUMN_EXECUTE_LOG_JEL_QUEUE_ID = "JEL_QUEUE_ID";
/**
* 任务所属命名空间
*/
String COLUMN_EXECUTE_LOG_JEL_NAMESPACE = "JEL_NAMESPACE";
/**
* 任务执行的消费者地址
*/
String COLUMN_EXECUTE_LOG_JEL_CONSUMER_ADDRESS = "JEL_CONSUMER_ADDRESS";
/**
* 任务开始执行时间
*/
String COLUMN_EXECUTE_LOG_JEL_START_TIME = "JEL_START_TIME";
/**
* 任务重试次数
*/
String COLUMN_EXECUTE_LOG_JEL_RETRY_COUNT = "JEL_RETRY_COUNT";
/**
* 任务执行成功时间
*/
String COLUMN_EXECUTE_LOG_JEL_SUCCESS_TIME = "JEL_SUCCESS_TIME";
/**
* 任务执行状态
*/
String COLUMN_EXECUTE_LOG_JEL_STATE = "JEL_STATE";
/**
* 任务执行备注信息
*/
String COLUMN_EXECUTE_LOG_JEL_MARK = "JEL_MARK";
/*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*
* Table Execute Queue.
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
/**
* 任务队列主键
*/
String COLUMN_EXECUTE_QUEUE_JEQ_ID = "JEQ_ID";
/**
* 任务队列key
*/
String COLUMN_EXECUTE_QUEUE_JEQ_QUEUE_KEY = "JEQ_QUEUE_KEY";
/**
* 任务队列所属任务定义编号
*/
String COLUMN_EXECUTE_QUEUE_JEQ_JOB_KEY = "JEQ_JOB_KEY";
/**
* 任务执行方式
*/
String COLUMN_EXECUTE_QUEUE_JEQ_EXECUTE_AWAY = "JEQ_EXECUTE_AWAY";
/**
* 任务执行参数
*/
String COLUMN_EXECUTE_QUEUE_JEQ_EXECUTE_PARAM = "JEQ_EXECUTE_PARAM";
/**
* 任务负载均衡策略
*/
String COLUMN_EXECUTE_QUEUE_JEQ_LB_STRATEGY = "JEQ_LB_STRATEGY";
/**
* 任务负载均衡权重
*/
String COLUMN_EXECUTE_QUEUE_JEQ_LB_WEIGHT = "JEQ_LB_WEIGHT";
/**
* 任务重试次数
*/
String COLUMN_EXECUTE_QUEUE_JEQ_RETRY_COUNT = "JEQ_RETRY_COUNT";
/**
* 任务执行时间
*/
String COLUMN_EXECUTE_QUEUE_JEQ_EXECUTE_TIME = "JEQ_EXECUTE_TIME";
/**
* cron类型的任务时所需要的cron表达式
*/
String COLUMN_EXECUTE_QUEUE_JEQ_CRON = "JEQ_CRON";
/**
* loop类型的任务时所需要的循环次数
*/
String COLUMN_EXECUTE_QUEUE_JEQ_LOOP_TIMES = "JEQ_LOOP_TIMES";
/**
* loop类型的任务时所需要的循环间隔时间
*/
String COLUMN_EXECUTE_QUEUE_JEQ_LOOP_INTERVAL_MILLIS = "JEQ_LOOP_INTERVAL_MILLIS";
/**
* 任务队列创建时间
*/
String COLUMN_EXECUTE_QUEUE_JEQ_CREATE_TIME = "JEQ_CREATE_TIME";
/*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*
* Table Execute Schedule.
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
/**
* 任务调度中心编号
*/
String COLUMN_EXECUTE_SCHEDULE_JES_ID = "JES_ID";
/**
* 任务调度中心地址
*/
String COLUMN_EXECUTE_SCHEDULE_JES_ADDRESS = "JES_ADDRESS";
/**
* 任务调度中心运行状态
*/
String COLUMN_EXECUTE_SCHEDULE_JES_STATE = "JES_STATE";
/**
* 任务调度中心开始运行时间
*/
String COLUMN_EXECUTE_SCHEDULE_JES_START_TIME = "JES_START_TIME";
}