Hadoop.Client/Jobs/IHadoopClientExtensions.cs
/// <summary>
/// Method that waits for a jobDetails to complete.
/// </summary>
/// <param name="client">The Hadoop client to use.</param>
/// <param name="job">The jobDetails to wait for.</param>
/// <param name="duration">The duration to wait before timing out.</param>
/// <param name="cancellationToken">
/// The Cancellation Token for the request.
/// </param>
/// <returns>The jobDetails's pigJobCreateParameters.</returns>
Method that waits for a jobDetails to complete.
Method that waits for a jobDetails to complete .
public static JobDetails WaitForJobCompletion(
            this IHadoopJobClient client, JobCreationResults job, TimeSpan duration, CancellationToken cancellationToken)
        {
            return WaitForJobCompletionAsync(client, job, duration, cancellationToken).Result;
        }
public static JobDetails WaitForJobCompletion ( this IHadoopJobClient client , JobCreationResults job , TimeSpan duration , CancellationToken cancellationToken ) { return WaitForJobCompletionAsync ( client , job , duration , cancellationToken ) . Result ; }
Method that waits for a jobDetails to complete.
Method that waits for a jobDetails to complete .
The jobDetails's pigJobCreateParameters.
The jobDetails ' s pigJobCreateParameters .
IHadoopJobClient
this
job
JobCreationResults
The jobDetails to wait for.
The jobDetails to wait for .
duration
TimeSpan
The duration to wait before timing out.
The duration to wait before timing out .
cancellationToken
CancellationToken
The Cancellation Token for the request.
The Cancellation Token for the request .
client
The Hadoop client to use.
The Hadoop client to use .