org.apache.hadoop.yarn.api.records
Class StrictPreemptionContract
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StrictPreemptionContract
public StrictPreemptionContract()
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.