org.apache.hadoop.tools.rumen
Class TaskInfo

java.lang.Object
  extended by org.apache.hadoop.tools.rumen.TaskInfo

public class TaskInfo
extends Object


Constructor Summary
TaskInfo(long bytesIn, int recsIn, long bytesOut, int recsOut, long maxMemory)
           
TaskInfo(long bytesIn, int recsIn, long bytesOut, int recsOut, long maxMemory, ResourceUsageMetrics metrics)
           
 
Method Summary
 long getInputBytes()
           
 int getInputRecords()
           
 long getOutputBytes()
           
 int getOutputRecords()
           
 ResourceUsageMetrics getResourceUsageMetrics()
           
 long getTaskMemory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskInfo

public TaskInfo(long bytesIn,
                int recsIn,
                long bytesOut,
                int recsOut,
                long maxMemory)

TaskInfo

public TaskInfo(long bytesIn,
                int recsIn,
                long bytesOut,
                int recsOut,
                long maxMemory,
                ResourceUsageMetrics metrics)
Method Detail

getInputBytes

public long getInputBytes()
Returns:
Raw bytes read from the FileSystem into the task. Note that this may not always match the input bytes to the task.

getInputRecords

public int getInputRecords()
Returns:
Number of records input to this task.

getOutputBytes

public long getOutputBytes()
Returns:
Raw bytes written to the destination FileSystem. Note that this may not match output bytes.

getOutputRecords

public int getOutputRecords()
Returns:
Number of records output from this task.

getTaskMemory

public long getTaskMemory()
Returns:
Memory used by the task leq the heap size.

getResourceUsageMetrics

public ResourceUsageMetrics getResourceUsageMetrics()
Returns:
Resource usage metrics


Copyright © 2012 Apache Software Foundation. All Rights Reserved.