Exemplo n.º 1
0
        /// <summary>
        /// Discover the dryadlinq job associated with a cluster job.
        /// </summary>
        /// <param name="status">Cluster configuration.</param>
        /// <returns>The job, if any</returns>
        /// <param name="reporter">Delegate used to report errors.</param>
        public DryadLinqJobSummary DiscoverDryadLinqJob(ClusterStatus status, StatusReporter reporter)
        {
            if (this.IsUnavailable)
            {
                return(null);
            }
            if (this.JobSummary != null)
            {
                return(this.JobSummary);
            }

            DryadLinqJobSummary j = status.DiscoverDryadLinqJobFromClusterJob(this, reporter);

            if (j == null)
            {
                this.IsUnavailable = true;
            }
            return(this.JobSummary = j);
        }