/// <summary> /// Initializes a new instance of the AzureHDInsightJob class. /// </summary> /// <param name="jobDetails">The HDInsight jobDetails.</param> /// <param name="cluster">The cluster that the jobDetails was created against.</param> public AzureHDInsightJob(JobDetails jobDetails, string cluster) : base(jobDetails) { jobDetails.ArgumentNotNull("jobDetails"); this.ExitCode = jobDetails.ExitCode; this.Name = jobDetails.Name; this.Query = jobDetails.Query; this.State = jobDetails.StatusCode.ToString(); this.Cluster = cluster; this.StatusDirectory = jobDetails.StatusDirectory; this.SubmissionTime = jobDetails.SubmissionTime; this.PercentComplete = jobDetails.PercentComplete; }
/// <summary> /// Initializes a new instance of the AzureHDInsightJob class. /// </summary> /// <param name="jobDetails">The HDInsight jobDetails.</param> /// <param name="cluster">The cluster that the jobDetails was created against.</param> public AzureHDInsightJob(JobDetails jobDetails, string cluster) : base(jobDetails) { jobDetails.ArgumentNotNull("jobDetails"); this.ExitCode = jobDetails.ExitCode; this.Name = jobDetails.Name; this.Query = jobDetails.Query; this.State = jobDetails.StatusCode.ToString(); this.Cluster = cluster; this.StatusDirectory = jobDetails.StatusDirectory; this.SubmissionTime = jobDetails.SubmissionTime; this.PercentComplete = jobDetails.PercentComplete; }
/// <summary> /// Initializes a new instance of the AzureHDInsightJobBase class. /// </summary> /// <param name="jobDetails">The HDInsight jobDetails.</param> public AzureHDInsightJobBase(JobDetails jobDetails) { jobDetails.ArgumentNotNull("jobDetails"); this.JobId = jobDetails.JobId; }
/// <summary> /// Initializes a new instance of the AzureHDInsightJobBase class. /// </summary> /// <param name="jobDetails">The HDInsight jobDetails.</param> public AzureHDInsightJobBase(JobDetails jobDetails) { jobDetails.ArgumentNotNull("jobDetails"); this.JobId = jobDetails.JobId; }