Microsoft.Azure.Commands.HDInsight.Models.AzureHDInsightJob.AzureHDInsightJob C# (CSharp) Method

AzureHDInsightJob() public method

Initializes a new instance of the AzureHDInsightJob class.
public AzureHDInsightJob ( Microsoft.Azure.Management.HDInsight.Job.Models.JobDetailRootJsonObject jobDetails, string cluster ) : Microsoft.Azure.Management.HDInsight.Job.Models
jobDetails Microsoft.Azure.Management.HDInsight.Job.Models.JobDetailRootJsonObject The HDInsight jobDetails.
cluster string The cluster that the jobDetails was created against.
return Microsoft.Azure.Management.HDInsight.Job.Models
        public AzureHDInsightJob(JobDetailRootJsonObject jobDetails, string cluster)
        {
            var index = cluster.IndexOf('.');
            Cluster = index > -1 ? cluster.Substring(0, index) : cluster;
            HttpEndpoint = cluster;
            State = jobDetails.Status.State;
            JobId = jobDetails.Id;
            ParentId = jobDetails.ParentId;
            PercentComplete = jobDetails.PercentComplete;
            ExitValue = jobDetails.ExitValue;
            User = jobDetails.User;
            Callback = jobDetails.Callback;
            Completed = jobDetails.Completed;
            StatusFolder = jobDetails.Userargs.Statusdir != null ? jobDetails.Userargs.Statusdir.ToString() : string.Empty;
        }
AzureHDInsightJob