You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.6 KiB
65 lines
1.6 KiB
using System; |
|
using System.IO; |
|
|
|
namespace DotXxlJob.Core.Config |
|
{ |
|
public class XxlJobExecutorOptions |
|
{ |
|
|
|
/// <summary> |
|
/// 管理端地址,多个以;分隔 |
|
/// </summary> |
|
public string AdminAddresses { get; set; } |
|
|
|
|
|
/// <summary> |
|
/// appName自动注册时要去管理端配置一致 |
|
/// </summary> |
|
public string AppName { get; set; } = "xxl-job-executor-dotnet"; |
|
|
|
|
|
|
|
/// <summary> |
|
/// 绑定的特殊的URL,如果该项配置存在,则忽略SpecialBindAddress和Port |
|
/// </summary> |
|
public string SpecialBindUrl { get; set; } |
|
|
|
/// <summary> |
|
/// 自动注册时提交的地址,为空会自动获取内网地址 |
|
/// </summary> |
|
public string SpecialBindAddress { get; set; } |
|
|
|
|
|
/// <summary> |
|
/// 绑定端口 |
|
/// </summary> |
|
public int Port { get; set; } |
|
|
|
/// <summary> |
|
/// 是否自动注册 |
|
/// </summary> |
|
public bool AutoRegistry { get; set; } |
|
|
|
|
|
/// <summary> |
|
/// 认证票据 |
|
/// </summary> |
|
public string AccessToken { get; set; } |
|
|
|
|
|
/// <summary> |
|
/// 日志目录,默认为执行目录的logs子目录下,请配置绝对路径 |
|
/// </summary> |
|
public string LogPath { get; set; } = Path.Combine(AppContext.BaseDirectory, "./logs"); |
|
|
|
|
|
/// <summary> |
|
/// 日志保留天数 |
|
/// </summary> |
|
public int LogRetentionDays { get; set; } = 30; |
|
|
|
|
|
public int CallBackInterval { get; set; } = 500; //回调时间间隔 500毫秒 |
|
|
|
} |
|
} |