Class Priority
java.lang.Object
org.apache.hadoop.yarn.api.records.Priority
- All Implemented Interfaces:
Comparable<Priority>
The priority assigned to a ResourceRequest or Application or Container
allocation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanabstract intGet the assigned priorityinthashCode()static PrioritynewInstance(int p) abstract voidsetPriority(int priority) Set the assigned prioritytoString()
-
Field Details
-
UNDEFINED
-
-
Constructor Details
-
Priority
public Priority()
-
-
Method Details
-
newInstance
-
getPriority
@Public @Stable public abstract int getPriority()Get the assigned priority- Returns:
- the assigned priority
-
setPriority
@Public @Stable public abstract void setPriority(int priority) Set the assigned priority- Parameters:
priority- the assigned priority
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<Priority>
-
toString
-