java.lang.Iterable<org.apache.hadoop.yarn.api.records.SchedulingRequest>, ConstraintPlacementAlgorithmInputpublic class BatchedRequests extends java.lang.Object implements ConstraintPlacementAlgorithmInput, java.lang.Iterable<org.apache.hadoop.yarn.api.records.SchedulingRequest>
| Modifier and Type | Class | Description |
|---|---|---|
static class |
BatchedRequests.IteratorType |
Iterator Type.
|
| Constructor | Description |
|---|---|
BatchedRequests(BatchedRequests.IteratorType type,
org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
java.util.Collection<org.apache.hadoop.yarn.api.records.SchedulingRequest> requests,
int attempt) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addToBatch(org.apache.hadoop.yarn.api.records.SchedulingRequest req) |
Add a Scheduling request to the batch.
|
void |
addToBlacklist(java.util.Set<java.lang.String> tags,
SchedulerNode node) |
|
org.apache.hadoop.yarn.api.records.ApplicationId |
getApplicationId() |
Get Application Id.
|
java.util.Set<org.apache.hadoop.yarn.api.records.NodeId> |
getBlacklist(java.lang.String tag) |
Get any blacklisted nodes associated with tag.
|
BatchedRequests.IteratorType |
getIteratorType() |
Get Iterator type.
|
int |
getPlacementAttempt() |
Get placement attempt.
|
java.util.Collection<org.apache.hadoop.yarn.api.records.SchedulingRequest> |
getSchedulingRequests() |
Get Collection of SchedulingRequests in this batch.
|
java.util.Iterator<org.apache.hadoop.yarn.api.records.SchedulingRequest> |
iterator() |
Exposes SchedulingRequest Iterator interface which can be used
to traverse requests using different heuristics i.e.
|
public BatchedRequests(BatchedRequests.IteratorType type, org.apache.hadoop.yarn.api.records.ApplicationId applicationId, java.util.Collection<org.apache.hadoop.yarn.api.records.SchedulingRequest> requests, int attempt)
public java.util.Iterator<org.apache.hadoop.yarn.api.records.SchedulingRequest> iterator()
iterator in interface java.lang.Iterable<org.apache.hadoop.yarn.api.records.SchedulingRequest>public org.apache.hadoop.yarn.api.records.ApplicationId getApplicationId()
public java.util.Collection<org.apache.hadoop.yarn.api.records.SchedulingRequest> getSchedulingRequests()
getSchedulingRequests in interface ConstraintPlacementAlgorithmInputpublic void addToBatch(org.apache.hadoop.yarn.api.records.SchedulingRequest req)
req - Scheduling Request.public void addToBlacklist(java.util.Set<java.lang.String> tags,
SchedulerNode node)
public int getPlacementAttempt()
public java.util.Set<org.apache.hadoop.yarn.api.records.NodeId> getBlacklist(java.lang.String tag)
tag - Tag.public BatchedRequests.IteratorType getIteratorType()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.