Skip to content

Commit

Permalink
YARN-7258. Add Node and Rack Hints to Opportunistic Scheduler. (Karth…
Browse files Browse the repository at this point in the history
…eek Muthyala via asuresh).
  • Loading branch information
xslogic committed Oct 5, 2017
1 parent 9288206 commit b733348
Show file tree
Hide file tree
Showing 11 changed files with 998 additions and 734 deletions.
Expand Up @@ -239,6 +239,22 @@ public ResourceRequestBuilder executionTypeRequest(
return this;
}

/**
* Set the <code>executionTypeRequest</code> of the request with 'ensure
* execution type' flag set to true.
* @see ResourceRequest#setExecutionTypeRequest(
* ExecutionTypeRequest)
* @param executionType <code>executionType</code> of the request.
* @return {@link ResourceRequestBuilder}
*/
@Public
@Evolving
public ResourceRequestBuilder executionType(ExecutionType executionType) {
resourceRequest.setExecutionTypeRequest(
ExecutionTypeRequest.newInstance(executionType, true));
return this;
}

/**
* Set the <code>allocationRequestId</code> of the request.
* @see ResourceRequest#setAllocationRequestId(long)
Expand Down

0 comments on commit b733348

Please sign in to comment.