Class ExecutionTypeRequest
java.lang.Object
org.apache.hadoop.yarn.api.records.ExecutionTypeRequest
- All Implemented Interfaces:
Comparable<ExecutionTypeRequest>
@Public
@Evolving
public abstract class ExecutionTypeRequest
extends Object
implements Comparable<ExecutionTypeRequest>
An object of this class represents a specification of the execution
guarantee of the Containers associated with a ResourceRequest. It consists
of an
ExecutionType as well as flag that explicitly asks the
configuredScheduler to return Containers of exactly the Execution Type
requested.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract booleanGet whether Scheduling Authority should return Containers of exactly the Execution Type requested for thisResourceRequest.abstract ExecutionTypeGetExecutionType.inthashCode()static ExecutionTypeRequeststatic ExecutionTypeRequestnewInstance(ExecutionType execType) static ExecutionTypeRequestnewInstance(ExecutionType execType, boolean ensureExecutionType) abstract voidsetEnforceExecutionType(boolean enforceExecutionType) Set to true to explicitly ask that the Scheduling Authority return Containers of exactly the Execution Type requested.abstract voidsetExecutionType(ExecutionType execType) Set theExecutionTypeof the requested container.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareTo
-
Constructor Details
-
ExecutionTypeRequest
public ExecutionTypeRequest()
-
-
Method Details
-
newInstance
-
newInstance
-
newInstance
@Public @Evolving public static ExecutionTypeRequest newInstance(ExecutionType execType, boolean ensureExecutionType) -
setExecutionType
Set theExecutionTypeof the requested container.- Parameters:
execType- ExecutionType of the requested container
-
getExecutionType
GetExecutionType.- Returns:
ExecutionType.
-
setEnforceExecutionType
@Public public abstract void setEnforceExecutionType(boolean enforceExecutionType) Set to true to explicitly ask that the Scheduling Authority return Containers of exactly the Execution Type requested.- Parameters:
enforceExecutionType- whether ExecutionType request should be strictly honored.
-
getEnforceExecutionType
@Public public abstract boolean getEnforceExecutionType()Get whether Scheduling Authority should return Containers of exactly the Execution Type requested for thisResourceRequest. Defaults to false.- Returns:
- whether ExecutionType request should be strictly honored
-
hashCode
public int hashCode() -
equals
-