org.apache.hadoop.tools.rumen
Interface JobStory

All Known Implementing Classes:
ZombieJob

public interface JobStory

JobStory represents the runtime information available for a completed Map-Reduce job.


Method Summary
 InputSplit[] getInputSplits()
          Get the input splits for the job.
 JobConf getJobConf()
          Get the JobConf for the job.
 JobID getJobID()
          Get the job ID
 TaskAttemptInfo getMapTaskAttemptInfoAdjusted(int taskNumber, int taskAttemptNumber, int locality)
          Get TaskAttemptInfo for a given task-attempt, considering impact of locality.
 String getName()
          Get the job name.
 int getNumberMaps()
          Get the number of maps in the JobStory.
 int getNumberReduces()
          Get the number of reduce in the JobStory.
 Pre21JobHistoryConstants.Values getOutcome()
          Get the outcome of the job execution.
 String getQueueName()
          Get the queue where the job is submitted.
 long getSubmissionTime()
          Get the job submission time.
 TaskAttemptInfo getTaskAttemptInfo(TaskType taskType, int taskNumber, int taskAttemptNumber)
          Get TaskAttemptInfo for a given task-attempt, without regard to impact of locality (e.g.
 TaskInfo getTaskInfo(TaskType taskType, int taskNumber)
          Get TaskInfo for a given task.
 String getUser()
          Get the user who ran the job.
 

Method Detail

getJobConf

JobConf getJobConf()
Get the JobConf for the job.

Returns:
the JobConf for the job

getName

String getName()
Get the job name.

Returns:
the job name

getJobID

JobID getJobID()
Get the job ID

Returns:
the job ID

getUser

String getUser()
Get the user who ran the job.

Returns:
the user who ran the job

getSubmissionTime

long getSubmissionTime()
Get the job submission time.

Returns:
the job submission time

getNumberMaps

int getNumberMaps()
Get the number of maps in the JobStory.

Returns:
the number of maps in the Job

getNumberReduces

int getNumberReduces()
Get the number of reduce in the JobStory.

Returns:
the number of reduces in the Job

getInputSplits

InputSplit[] getInputSplits()
Get the input splits for the job.

Returns:
the input splits for the job

getTaskInfo

TaskInfo getTaskInfo(TaskType taskType,
                     int taskNumber)
Get TaskInfo for a given task.

Parameters:
taskType - TaskType of the task
taskNumber - Partition number of the task
Returns:
the TaskInfo for the given task

getTaskAttemptInfo

TaskAttemptInfo getTaskAttemptInfo(TaskType taskType,
                                   int taskNumber,
                                   int taskAttemptNumber)
Get TaskAttemptInfo for a given task-attempt, without regard to impact of locality (e.g. not needed to make scheduling decisions).

Parameters:
taskType - TaskType of the task-attempt
taskNumber - Partition number of the task-attempt
taskAttemptNumber - Attempt number of the task
Returns:
the TaskAttemptInfo for the given task-attempt

getMapTaskAttemptInfoAdjusted

TaskAttemptInfo getMapTaskAttemptInfoAdjusted(int taskNumber,
                                              int taskAttemptNumber,
                                              int locality)
Get TaskAttemptInfo for a given task-attempt, considering impact of locality.

Parameters:
taskNumber - Partition number of the task-attempt
taskAttemptNumber - Attempt number of the task
locality - Data locality of the task as scheduled in simulation
Returns:
the TaskAttemptInfo for the given task-attempt

getOutcome

Pre21JobHistoryConstants.Values getOutcome()
Get the outcome of the job execution.

Returns:
The outcome of the job execution.

getQueueName

String getQueueName()
Get the queue where the job is submitted.

Returns:
the queue where the job is submitted.


Copyright © 2009 The Apache Software Foundation