org.apache.hadoop.mapred
Class TempletonJobTracker

Object
  extended by TempletonJobTracker

public class TempletonJobTracker
extends Object


Constructor Summary
TempletonJobTracker(InetSocketAddress addr, Configuration conf)
          Create a connection to the Job Tracker.
 
Method Summary
 void close()
          Close the connection to the Job Tracker.
 JobStatus[] getAllJobs()
          Get all the jobs submitted.
 JobProfile getJobProfile(JobID jobid)
          Grab a handle to a job that is already known to the JobTracker.
 JobStatus getJobStatus(JobID jobid)
          Grab a handle to a job that is already known to the JobTracker.
 void killJob(JobID jobid)
          Kill a job.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TempletonJobTracker

public TempletonJobTracker(InetSocketAddress addr,
                           Configuration conf)
                    throws IOException,
                           InterruptedException
Create a connection to the Job Tracker.

Throws:
IOException
InterruptedException
Method Detail

getJobProfile

public JobProfile getJobProfile(JobID jobid)
                         throws IOException
Grab a handle to a job that is already known to the JobTracker.

Returns:
Profile of the job, or null if not found.
Throws:
IOException

getJobStatus

public JobStatus getJobStatus(JobID jobid)
                       throws IOException
Grab a handle to a job that is already known to the JobTracker.

Returns:
Status of the job, or null if not found.
Throws:
IOException

killJob

public void killJob(JobID jobid)
             throws IOException
Kill a job.

Throws:
IOException

getAllJobs

public JobStatus[] getAllJobs()
                       throws IOException
Get all the jobs submitted.

Throws:
IOException

close

public void close()
Close the connection to the Job Tracker.