/// <summary> /// Find a vertex having specified the process id. /// </summary> /// <param name="id">Process id.</param> /// <returns>The vertex with the specified guid.</returns> public ExecutedVertexInstance FindVertex(DryadProcessIdentifier id) { return this.jobVertices.FindVertexByGuid(id.ToString()); }
// ReSharper restore UnusedParameter.Global /// <summary> /// File containing standard output of a process. /// </summary> /// <param name="identifier">Process identifier.</param> /// <param name="machine">Machine where process ran.</param> /// <param name="job">Job containing process.</param> /// <returns>The pathname to the standard output.</returns> /// <param name="terminated">True if vertex is terminated.</param> public override IClusterResidentObject ProcessStdoutFile(DryadProcessIdentifier identifier, bool terminated, string machine, DryadLinqJobSummary job) { if (identifier.ToString() == "jm") { IClusterResidentObject processdir = this.ProcessDirectory(identifier, terminated, machine, job); IClusterResidentObject file = processdir.GetFile("calypso.log"); return file; } // vertices not supported return null; }
/// <summary> /// The directory where a specific process is created on the cluster. /// </summary> /// <param name="identifier">Process identifier</param> /// <param name="machine">Machine where process ran.</param> /// <returns>Home directory containing the process information (not working directory of vertex).</returns> /// <param name="job">Job where the process belongs.</param> /// <param name="terminated">True if vertex is terminated.</param> public override IClusterResidentObject ProcessDirectory(DryadProcessIdentifier identifier, bool terminated, string machine, DryadLinqJobSummary job) { if (identifier.ToString() == "jm") { // The job manager process is special var result = new DfsFile(this, this.JobsFolderUri, job, this.DfsClient, job.ClusterJobId, terminated, true); return result; } // vertices not supported return null; }
/// <summary> /// The directory where a specific process is created on the cluster. /// </summary> /// <param name="identifier">Process identifier</param> /// <param name="machine">Machine where process ran.</param> /// <returns>Home directory containing the process information (not working directory of vertex).</returns> /// <param name="job">Job where the process belongs.</param> /// <param name="terminated">True if vertex is terminated.</param> public override IClusterResidentObject ProcessDirectory(DryadProcessIdentifier identifier, bool terminated, string machine, DryadLinqJobSummary job) { if (identifier.ToString() == "jm") { // The job manager process is special return new LocalFile(Utilities.PathCombine(this.JobsFolder, job.ClusterJobId, identifier.ProcessIdentifier, "Process.000.001")); } else { string folder = Utilities.PathCombine(this.JobsFolder, job.ClusterJobId, "Worker"); return new LocalFile(Path.Combine(folder, identifier.ProcessIdentifier)); } }