internal SparkSession(SparkSessionState livyInfo, string name, string workspaceName, string sparkPoolName, string submitterName, string submitterId, string artifactId, SparkJobType?jobType, SparkSessionResultType?result, SparkScheduler scheduler, SparkServicePlugin plugin, IReadOnlyList <SparkServiceError> errors, IReadOnlyDictionary <string, string> tags, int id, string appId, IReadOnlyDictionary <string, string> appInfo, string state, IReadOnlyList <string> logLines) { LivyInfo = livyInfo; Name = name; WorkspaceName = workspaceName; SparkPoolName = sparkPoolName; SubmitterName = submitterName; SubmitterId = submitterId; ArtifactId = artifactId; JobType = jobType; Result = result; Scheduler = scheduler; Plugin = plugin; Errors = errors; Tags = tags; Id = id; AppId = appId; AppInfo = appInfo; State = state; LogLines = logLines; }
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 = null, string name = null, string workspaceName = null, string sparkPoolName = null, string submitterName = null, string submitterId = null, string artifactId = null, SparkJobType?jobType = null, SparkBatchJobResultType?result = null, SparkScheduler scheduler = null, SparkServicePlugin plugin = null, IEnumerable <SparkServiceError> errors = null, IReadOnlyDictionary <string, string> tags = null, int id = default, string appId = null, IReadOnlyDictionary <string, string> appInfo = null, string state = null, IEnumerable <string> logLines = null) { 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?.ToList(), tags, id, appId, appInfo, state, logLines?.ToList())); }
public static SparkSession SparkSession(SparkSessionState livyInfo = default, string name = default, string workspaceName = default, string sparkPoolName = default, string submitterName = default, string submitterId = default, string artifactId = default, SparkJobType?jobType = default, SparkSessionResultType?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 SparkSession(livyInfo, name, workspaceName, sparkPoolName, submitterName, submitterId, artifactId, jobType, result, scheduler, plugin, errors, tags, id, appId, appInfo, state, logLines)); }