parent
46b7d6fda8
commit
aa35e4b6a6
6 changed files with 63 additions and 0 deletions
@ -0,0 +1,8 @@ |
|||||||
|
namespace DotXxlJob.Core |
||||||
|
{ |
||||||
|
public interface IJobHandlerFactory |
||||||
|
{ |
||||||
|
//TODO: 获取实际执行的JobHandler |
||||||
|
IJobHandler GetJobHandler(string handlerName); |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,30 @@ |
|||||||
|
using System.Threading; |
||||||
|
using System.Threading.Tasks; |
||||||
|
using Microsoft.Extensions.Hosting; |
||||||
|
|
||||||
|
namespace DotXxlJob.Core |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// NOTE: 负责启动Executor服务,和进行服务注册的宿主服务 |
||||||
|
/// </summary> |
||||||
|
public class JobsExecuteHostedService:IHostedService |
||||||
|
{ |
||||||
|
public Task StartAsync(CancellationToken cancellationToken) |
||||||
|
{ |
||||||
|
//1 初始化服务注册 |
||||||
|
//2 初始化adminClient |
||||||
|
|
||||||
|
//3 初始化执行线程 |
||||||
|
|
||||||
|
//4 初始化XXL_RPC服务端口,HTTP服务 |
||||||
|
|
||||||
|
throw new System.NotImplementedException(); |
||||||
|
} |
||||||
|
|
||||||
|
public Task StopAsync(CancellationToken cancellationToken) |
||||||
|
{ |
||||||
|
//清理Start中启动的资源 |
||||||
|
throw new System.NotImplementedException(); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,7 @@ |
|||||||
|
namespace DotXxlJob.Core.Model |
||||||
|
{ |
||||||
|
public class TriggerParam |
||||||
|
{ |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,7 @@ |
|||||||
|
namespace DotXxlJob.Core |
||||||
|
{ |
||||||
|
public class TaskExcutor |
||||||
|
{ |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,7 @@ |
|||||||
|
namespace DotXxlJob.Core |
||||||
|
{ |
||||||
|
public class TaskExecutorFactory |
||||||
|
{ |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue