public PSSchedulerInformation(SparkScheduler schedulerInfo) { this.SubmittedAt = schedulerInfo?.SubmittedAt; this.ScheduledAt = schedulerInfo?.ScheduledAt; this.EndedAt = schedulerInfo?.EndedAt; this.CancellationRequestedAt = schedulerInfo?.CancellationRequestedAt; this.CurrentState = schedulerInfo?.CurrentState; }
public PSSynapseSparkJobInformationBase( string name, string workspaceName, string sparkPoolName, string submitterName, string submitterId, string artifactId, SparkJobType?jobType, string result, SparkScheduler scheduler, SparkServicePlugin plugin, IReadOnlyList <SparkServiceError> errors, IDictionary <string, string> tags, int?id, string appId, IReadOnlyDictionary <string, string> appInfo, string state, IReadOnlyList <string> logLines) { this.Name = name; this.WorkspaceName = workspaceName; this.SparkPoolName = sparkPoolName; this.SubmitterName = submitterName; this.SubmitterId = submitterId; this.ArtifactId = artifactId; this.JobType = jobType; this.Result = result; this.Scheduler = scheduler != null ? new PSSchedulerInformation(scheduler) : null; this.Plugin = plugin != null ?new PSSparkServicePluginInformation(plugin) : null; this.Errors = errors; this.Tags = TagsConversionHelper.CreateTagHashtable(tags); this.Id = id; this.AppId = appId; this.AppInfo = appInfo; this.State = state; this.LogLines = logLines; }
public static SparkBatchJob SparkBatchJob(SparkBatchJobState livyInfo = default, string name = default, string workspaceName = default, string sparkPoolName = default, string submitterName = default, string submitterId = default, string artifactId = default, SparkJobType?jobType = default, SparkBatchJobResultType?result = default, SparkScheduler scheduler = default, SparkServicePlugin plugin = default, IReadOnlyList <SparkServiceError> errors = default, IReadOnlyDictionary <string, string> tags = default, int id = default, string appId = default, IReadOnlyDictionary <string, string> appInfo = default, string state = default, IReadOnlyList <string> logLines = default) { errors ??= new List <SparkServiceError>(); tags ??= new Dictionary <string, string>(); appInfo ??= new Dictionary <string, string>(); logLines ??= new List <string>(); return(new SparkBatchJob(livyInfo, name, workspaceName, sparkPoolName, submitterName, submitterId, artifactId, jobType, result, scheduler, plugin, errors, tags, id, appId, appInfo, state, logLines)); }