using System;
using System.IO;
namespace DotXxlJob.Core.Config
{
public class XxlJobExecutorOptions
{
///
/// 管理端地址,多个以;分隔
///
public string AdminAddresses { get; set; }
///
/// appName自动注册时要去管理端配置一致
///
public string AppName { get; set; } = "xxl-job-executor-dotnet";
///
/// 绑定的特殊的URL,如果该项配置存在,则忽略SpecialBindAddress和Port
///
public string SpecialBindUrl { get; set; }
///
/// 自动注册时提交的地址,为空会自动获取内网地址
///
public string SpecialBindAddress { get; set; }
///
/// 绑定端口
///
public int Port { get; set; }
///
/// 是否自动注册
///
public bool AutoRegistry { get; set; }
///
/// 认证票据
///
public string AccessToken { get; set; }
///
/// 日志目录,默认为执行目录的logs子目录下,请配置绝对路径
///
public string LogPath { get; set; } = Path.Combine(AppContext.BaseDirectory, "./logs");
///
/// 日志保留天数
///
public int LogRetentionDays { get; set; } = 30;
public int CallBackInterval { get; set; } = 500; //回调时间间隔 500毫秒
}
}