Example usage for org.apache.hadoop.mapreduce JobStatus getCleanupProgress

List of usage examples for org.apache.hadoop.mapreduce JobStatus getCleanupProgress

Introduction

In this page you can find the example usage for org.apache.hadoop.mapreduce JobStatus getCleanupProgress.

Prototype

public synchronized float getCleanupProgress() 

Source Link

Usage

From source file:org.apache.ignite.client.hadoop.GridHadoopClientProtocolSelfTest.java

License:Apache License

/**
 * Check job status./* w  w  w  . j a  v a 2 s  .c o  m*/
 *
 * @param status Job status.
 * @param expJobId Expected job ID.
 * @param expJobName Expected job name.
 * @param expState Expected state.
 * @param expCleanupProgress Expected cleanup progress.
 * @throws Exception If failed.
 */
private static void checkJobStatus(JobStatus status, JobID expJobId, String expJobName,
        JobStatus.State expState, float expCleanupProgress) throws Exception {
    assert F.eq(status.getJobID(), expJobId) : "Expected=" + expJobId + ", actual=" + status.getJobID();
    assert F.eq(status.getJobName(), expJobName) : "Expected=" + expJobName + ", actual=" + status.getJobName();
    assert F.eq(status.getState(), expState) : "Expected=" + expState + ", actual=" + status.getState();
    assert F.eq(status.getCleanupProgress(), expCleanupProgress) : "Expected=" + expCleanupProgress
            + ", actual=" + status.getCleanupProgress();
}