@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class PreemptionContract extends Object
ApplicationMaster(AM) can satisfy this request according to its own priorities to prevent containers from being forcibly killed by the platform.
|Constructor and Description|
|Modifier and Type||Method and Description|
Assign the set of
@InterfaceAudience.Public @InterfaceStability.Evolving public abstract List<PreemptionResourceRequest> getResourceRequest()
PreemptionContainers enumerated in
getContainers()should not be evicted from the cluster. Due to delays in propagating cluster state and sending these messages, there are conditions where satisfied contracts may not prevent the platform from killing containers.
@InterfaceAudience.Public @InterfaceStability.Evolving public abstract Set<PreemptionContainer> getContainers()
PreemptionContainerspecifying which containers owned by the
ApplicationMasterthat may be reclaimed by the
ResourceManager. If the AM prefers a different set of containers, then it may checkpoint or kill containers matching the description in
Copyright © 2015 Apache Software Foundation. All rights reserved.