org.apache.hadoop.yarn.api.records
Class StrictPreemptionContract

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.StrictPreemptionContract

@InterfaceAudience.Public
@InterfaceStability.Evolving
public abstract class StrictPreemptionContract
extends Object

Enumeration of particular allocations to be reclaimed. The platform will reclaim exactly these resources, so the ApplicationMaster (AM) may attempt to checkpoint work or adjust its execution plan to accommodate it. In contrast to PreemptionContract, the AM has no flexibility in selecting which resources to return to the cluster.

See Also:
PreemptionMessage

Constructor Summary
StrictPreemptionContract()
           
 
Method Summary
abstract  Set<PreemptionContainer> getContainers()
          Get the set of PreemptionContainer specifying containers owned by the ApplicationMaster that may be reclaimed by the ResourceManager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrictPreemptionContract

public StrictPreemptionContract()
Method Detail

getContainers

@InterfaceAudience.Public
@InterfaceStability.Evolving
public abstract Set<PreemptionContainer> getContainers()
Get the set of PreemptionContainer specifying containers owned by the ApplicationMaster that may be reclaimed by the ResourceManager.

Returns:
the set of ContainerId to be preempted.


Copyright © 2014 Apache Software Foundation. All Rights Reserved.