/// <summary> /// Initializes a new instance of the TtsHpcTaskJob class. /// </summary> /// <param name="command">The command of the job.</param> /// <param name="owner">The owner of the job.</param> /// <param name="name">The name of the job.</param> /// <param name="logFile">The log file of the job.</param> /// <param name="priority">The priority of the job.</param> /// <param name="isExclusive">Indicates whether the job is exclusive.</param> public TtsHpcTaskJob(string command, string owner, string name, string logFile, HpcJobPriority priority, bool isExclusive) { // Initialize value this.Name = name; this.Owner = owner; this.Command = command; this.LogFile = logFile; this.Priority = priority; this.UseWholeMachine = isExclusive; // Default value this.State = HpcJobState.Create; this.Id = -1; this.Machine = null; this.CpuTime = 0; }
/// <summary> /// Create a job that can be dealt with this Farm. /// </summary> /// <param name="command">The command of the job.</param> /// <param name="name">The name of the job.</param> /// <param name="logFile">The log file of the job.</param> /// <param name="isExclusive">Indicates whether the job is exclusive.</param> /// <param name="startValue">Sweep job's start value.</param> /// <param name="endValue">Sweep job's end value.</param> /// <param name="incrementalValue">Sweep job's incremental value.</param> /// <param name="priority">The priority of the job.</param> /// <returns>The job object.</returns> public override TtsHpcJob CreateJob(string command, string name, string logFile, bool isExclusive, int startValue, int endValue, int incrementalValue, HpcJobPriority priority) { return new TtsHpcTaskJob(command, name, logFile, isExclusive, startValue, endValue, incrementalValue, priority); }
/// <summary> /// Initializes a new instance of the TtsHpcTaskJob class. /// </summary> /// <param name="command">The command of the job.</param> /// <param name="name">The name of the job.</param> /// <param name="logFile">The log file of the job.</param> /// <param name="isExclusive">Indicates whether the job is exclusive.</param> /// <param name="startValue">Sweep job's start value.</param> /// <param name="endValue">Sweep job's end value.</param> /// <param name="incrementValue">Sweep job's incremental value.</param> /// <param name="priority">The priority of the job.</param> public TtsHpcTaskJob(string command, string name, string logFile, bool isExclusive, int startValue, int endValue, int incrementValue, HpcJobPriority priority) { // Initialize value this.Name = name; this.Command = command; this.LogFile = logFile; this.UseWholeMachine = isExclusive; this.StartValue = startValue; this.EndValue = endValue; this.IncrementalValue = incrementValue; // Default value this.Owner = null; this.Priority = priority; this.State = HpcJobState.Create; this.Id = -1; this.Machine = null; this.CpuTime = 0; }
/// <summary> /// The abstract method of create job. /// </summary> /// <param name="command">The command of the job.</param> /// <param name="name">The name of the job.</param> /// <param name="logFile">The log file of the job.</param> /// <param name="isExclusive">Indicates whether the job is exclusive.</param> /// <param name="startValue">Sweep job's start value.</param> /// <param name="endValue">Sweep job's end value.</param> /// <param name="incrementalValue">Sweep job's incremental value.</param> /// <param name="priority">The priority of the job.</param> /// <returns>The job object.</returns> public abstract TtsHpcJob CreateJob(string command, string name, string logFile, bool isExclusive, int startValue, int endValue, int incrementalValue, HpcJobPriority priority);