JD2022-TU1/main/tools/services/JD.Deadline.Service/IDeadlineService.cs

28 lines
No EOL
807 B
C#

using System.Collections.Generic;
using System.Threading.Tasks;
using DeadlineNet.DTO.Jobs;
using DeadlineNet.DTO.Slaves;
using Plume.Interfaces.Services;
namespace JD.Deadline.Service
{
public interface IDeadlineService : IService
{
void SetServerUrl(string serverUrl);
Task<string> GetBinDirectoryAsync();
ICollection<string> GetAllGroupNames();
Task<ICollection<string>> GetAllGroupNamesAsync();
Task<ICollection<Job>> GetAllJobsAsync();
Task<ICollection<SlaveInfo>> GetAllSlavesAsync();
/// <summary>
/// Submit a job on Deadline. Returns the id of the submitted job.
/// </summary>
Task<string> SubmitJobAsync(JobInfo jobInfo, PluginInfo pluginInfo, ICollection<string> auxFiles);
}
}