Example #1
0
 /// <summary>Get the job history file path for a given job id.</summary>
 /// <remarks>
 /// Get the job history file path for a given job id. The job history file at
 /// this path may or may not be existing depending on the job completion state.
 /// The file is present only for the completed jobs.
 /// </remarks>
 /// <param name="jobId">the JobID of the job submitted by the current user.</param>
 /// <returns>the file path of the job history file</returns>
 /// <exception cref="System.IO.IOException"/>
 /// <exception cref="System.Exception"/>
 public virtual string GetJobHistoryUrl(JobID jobId)
 {
     if (jobHistoryDir == null)
     {
         jobHistoryDir = new Path(client.GetJobHistoryDir());
     }
     return(new Path(jobHistoryDir, jobId.ToString() + "_" + ugi.GetShortUserName()).ToString
                ());
 }