コード例 #1
0
ファイル: Diagnosis.cs プロジェクト: animeshinvinci/Dryad
 /// <summary>
 /// Create a class to diagnose the problems of a vertex.
 /// </summary>
 /// <param name="vertex">Vertex to diagnose.</param>
 /// <param name="job">Job containing the vertex.</param>
 /// <param name="plan">Plan of the executed job.</param>
 /// <param name="manager">Communication manager.</param>
 protected VertexFailureDiagnosis(DryadLinqJobInfo job, DryadJobStaticPlan plan, ExecutedVertexInstance vertex, CommManager manager)
     : base(job, plan, manager)
 {
     this.Job    = job;
     this.Vertex = vertex;
     // ReSharper disable once DoNotCallOverridableMethodsInConstructor
     this.stackTraceFile = "dryadLinqStackTrace.txt";
 }
コード例 #2
0
ファイル: Diagnosis.cs プロジェクト: animeshinvinci/Dryad
 /// <summary>
 /// Create a class to diagnose the problems of a job.
 /// </summary>
 /// <param name="config">Cluster where job resides.</param>
 /// <param name="manager">Communication manager.</param>
 /// <param name="summary">Job summary.</param>
 protected JobFailureDiagnosis(ClusterConfiguration config, DryadLinqJobSummary summary, CommManager manager)
     : base(config, summary, manager)
 {
     this.diagnosisLog = new DiagnosisLog(this.Job, summary);
     if (this.Job != null)
     {
         this.jobManager = this.Job.ManagerVertex;
     }
 }
コード例 #3
0
ファイル: Diagnosis.cs プロジェクト: animeshinvinci/Dryad
        /// <summary>
        /// Create a VertexFailureDiagnosis of the appropriate type.
        /// </summary>
        /// <param name="vertex">Vertex to diagnose.</param>
        /// <param name="job">Job containing the vertex.</param>
        /// <param name="manager">Communication manager.</param>
        /// <returns>A subclass of VertexFailureDiagnosis.</returns>
        /// <param name="plan">Plan of the executed job.</param>
        public static VertexFailureDiagnosis CreateVertexFailureDiagnosis(DryadLinqJobInfo job,
                                                                          DryadJobStaticPlan plan,
                                                                          ExecutedVertexInstance vertex,
                                                                          CommManager manager)
        {
            ClusterConfiguration config = job.ClusterConfiguration;

            if (config is CacheClusterConfiguration)
            {
                config = (config as CacheClusterConfiguration).ActualConfig(job.Summary);
            }


            throw new InvalidOperationException("Config of type " + config.TypeOfCluster + " not handled");
        }
コード例 #4
0
ファイル: jobschedule.cs プロジェクト: xyuan/Dryad
            internal void Add(string machine, ExecutedVertexInstance vertex)
            {
                int index;

                if (!this.machines.ContainsKey(machine))
                {
                    index = this.MachineCount;
                    this.machines.Add(machine, index);
                    this.machineInfo.Add(new MachineInformation(machine));
                }
                else
                {
                    index = this.machines[machine];
                }
                this.machineInfo[index].AddVertex(vertex);
            }
コード例 #5
0
ファイル: Diagnosis.cs プロジェクト: animeshinvinci/Dryad
 /// <summary>
 /// Create a class to diagnose the problems of a job.
 /// </summary>
 /// <param name="job">Job to diagnose.</param>
 /// <param name="plan">Plan of the diagnosed job.</param>
 /// <param name="manager">Communication manager.</param>
 protected JobFailureDiagnosis(DryadLinqJobInfo job, DryadJobStaticPlan plan, CommManager manager)
     : base(job, plan, manager)
 {
     this.diagnosisLog = new DiagnosisLog(job, job.Summary);
     this.jobManager   = this.Job.ManagerVertex;
 }
コード例 #6
0
ファイル: jobschedule.cs プロジェクト: xyuan/Dryad
 public void AddVertex(ExecutedVertexInstance e)
 {
     this.vertices.Add(e);
 }