Class StrictPreemptionContract
java.lang.Object
org.apache.hadoop.yarn.api.records.StrictPreemptionContract
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Set<PreemptionContainer>Get the set ofPreemptionContainerspecifying containers owned by theApplicationMasterthat may be reclaimed by theResourceManager.static StrictPreemptionContractnewInstance(Set<PreemptionContainer> containers) abstract voidsetContainers(Set<PreemptionContainer> containers)
-
Constructor Details
-
StrictPreemptionContract
public StrictPreemptionContract()
-
-
Method Details
-
newInstance
@Private @Unstable public static StrictPreemptionContract newInstance(Set<PreemptionContainer> containers) -
getContainers
Get the set ofPreemptionContainerspecifying containers owned by theApplicationMasterthat may be reclaimed by theResourceManager.- Returns:
- the set of
ContainerIdto be preempted.
-
setContainers
-