org.springframework.data.hadoop.mapreduce
Class JobUtils

java.lang.Object
  extended by org.springframework.data.hadoop.mapreduce.JobUtils

public abstract class JobUtils
extends Object

Utilities around Hadoop Jobs. Mainly used for converting a Job instance to different types.

Author:
Costin Leau, Mark Pollack, Thomas Risberg

Nested Class Summary
static class JobUtils.JobStatus
          Status of a job.
 
Constructor Summary
JobUtils()
           
 
Method Summary
static JobConf getJobConf(Job job)
           
static JobID getJobId(Job job)
           
static JobID getOldJobId(Job job)
           
static RunningJob getRunningJob(Job job)
           
static JobUtils.JobStatus getStatus(Job job)
          Returns the status of the given job.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobUtils

public JobUtils()
Method Detail

getRunningJob

public static RunningJob getRunningJob(Job job)

getJobId

public static JobID getJobId(Job job)

getOldJobId

public static JobID getOldJobId(Job job)

getJobConf

public static JobConf getJobConf(Job job)

getStatus

public static JobUtils.JobStatus getStatus(Job job)
Returns the status of the given job. May return null indicating accessing the job caused exceptions.

Parameters:
job -
Returns:
the job status