/// <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>An awaitable task that represents the action.</returns>
 public static async Task<JobDetails> WaitForJobCompletionAsync(
     this IHadoopJobClient client, JobCreationResults job, TimeSpan duration, CancellationToken cancellationToken)
 {
     return await client.WaitForJobCompletionAsync(job.JobId, duration, cancellationToken);
 }
Example #2
0
 /// <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>An awaitable task that represents the action.</returns>
 public static async Task <JobDetails> WaitForJobCompletionAsync(
     this IHadoopJobClient client, JobCreationResults job, TimeSpan duration, CancellationToken cancellationToken)
 {
     return(await client.WaitForJobCompletionAsync(job.JobId, duration, cancellationToken));
 }
 /// <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>
 public static JobDetails WaitForJobCompletion(
     this IHadoopJobClient client, JobCreationResults job, TimeSpan duration, CancellationToken cancellationToken)
 {
     return WaitForJobCompletionAsync(client, job, duration, cancellationToken).Result;
 }
Example #4
0
 /// <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>
 public static JobDetails WaitForJobCompletion(
     this IHadoopJobClient client, JobCreationResults job, TimeSpan duration, CancellationToken cancellationToken)
 {
     return(WaitForJobCompletionAsync(client, job, duration, cancellationToken).Result);
 }