org.apache.hadoop.yarn.api.records
Class Priority

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.Priority
All Implemented Interfaces:
Comparable<Priority>
Direct Known Subclasses:
PriorityPBImpl

public abstract class Priority
extends Object
implements Comparable<Priority>

The priority assigned to a ResourceRequest or Application or Container allocation


Constructor Summary
Priority()
           
 
Method Summary
 int compareTo(Priority other)
           
 boolean equals(Object obj)
           
abstract  int getPriority()
          Get the assigned priority
 int hashCode()
           
abstract  void setPriority(int priority)
          Set the assigned priority
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Priority

public Priority()
Method Detail

getPriority

public abstract int getPriority()
Get the assigned priority

Returns:
the assigned priority

setPriority

public abstract void setPriority(int priority)
Set the assigned priority

Parameters:
priority - the assigned priority

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

compareTo

public int compareTo(Priority other)
Specified by:
compareTo in interface Comparable<Priority>


Copyright © 2012 Apache Software Foundation. All Rights Reserved.