-
Notifications
You must be signed in to change notification settings - Fork 9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
YARN-11781. Implement Dynamic Requests Handling in CapacityScheduler
- Loading branch information
yangtao.yt
committed
Mar 1, 2025
1 parent
89f9c5a
commit b204aa9
Showing
8 changed files
with
972 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
.../apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/RequestsHandleResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity; | ||
Check failure on line 1 in hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/RequestsHandleResponse.java
|
||
|
||
import org.apache.hadoop.yarn.api.records.ResourceRequest; | ||
import org.apache.hadoop.yarn.api.records.SchedulingRequest; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Response of the handle method in {@link RequestsHandler}. | ||
*/ | ||
public class RequestsHandleResponse { | ||
|
||
private final boolean isUpdated; | ||
private final List<ResourceRequest> resourceRequests; | ||
private final List<SchedulingRequest> schedulingRequests; | ||
|
||
public RequestsHandleResponse(boolean isUpdated, | ||
List<ResourceRequest> resourceRequests, | ||
List<SchedulingRequest> schedulingRequests) { | ||
this.isUpdated = isUpdated; | ||
this.resourceRequests = resourceRequests; | ||
this.schedulingRequests = schedulingRequests; | ||
} | ||
|
||
public List<ResourceRequest> getResourceRequests() { | ||
return resourceRequests; | ||
} | ||
|
||
public List<SchedulingRequest> getSchedulingRequests() { | ||
return schedulingRequests; | ||
} | ||
|
||
public boolean isUpdated() { | ||
return isUpdated; | ||
} | ||
} |
Oops, something went wrong.