public abstract static class AMPreemptionPolicy.Context
extends java.lang.Object
| Constructor | Description |
|---|---|
Context() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract java.util.List<org.apache.hadoop.yarn.api.records.Container> |
getContainers(org.apache.hadoop.mapreduce.v2.api.records.TaskType t) |
Method provides the complete list of containers running task of type t
for this AM.
|
abstract org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId |
getTaskAttempt(org.apache.hadoop.yarn.api.records.ContainerId container) |
public abstract org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId getTaskAttempt(org.apache.hadoop.yarn.api.records.ContainerId container)
container - ID of container to preemptnull
if no task is bound to that container.public abstract java.util.List<org.apache.hadoop.yarn.api.records.Container> getContainers(org.apache.hadoop.mapreduce.v2.api.records.TaskType t)
t - the type of containersCopyright © 2008–2025 Apache Software Foundation. All rights reserved.