public abstract static class AMPreemptionPolicy.Context extends Object
| Constructor and Description |
|---|
Context() |
| Modifier and Type | Method and Description |
|---|---|
abstract 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 List<org.apache.hadoop.yarn.api.records.Container> getContainers(org.apache.hadoop.mapreduce.v2.api.records.TaskType t)
t - the type of containersCopyright © 2008–2023 Apache Software Foundation. All rights reserved.