org.apache.tez.runtime.common.resources
Interface InitialMemoryAllocator

All Superinterfaces:
org.apache.hadoop.conf.Configurable

@InterfaceAudience.Private
public interface InitialMemoryAllocator
extends org.apache.hadoop.conf.Configurable

Used to balance memory requests before a task starts executing.


Method Summary
 Iterable<Long> assignMemory(long availableForAllocation, int numTotalInputs, int numTotalOutputs, Iterable<InitialMemoryRequestContext> requests)
           
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
 

Method Detail

assignMemory

Iterable<Long> assignMemory(long availableForAllocation,
                            int numTotalInputs,
                            int numTotalOutputs,
                            Iterable<InitialMemoryRequestContext> requests)
Parameters:
availableForAllocation - memory available for allocation
numTotalInputs - number of inputs for the task
numTotalOutputs - number of outputs for the tasks
requests - Iterable view of requests received
Returns:
list of allocations, one per request. This must be ordered in the same order of the requests.


Copyright © 2014 Apache Software Foundation. All rights reserved.