|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.api.records.Resource
@InterfaceAudience.Public @InterfaceStability.Stable public abstract class Resource
Resource models a set of computer resources in the
cluster.
Currrently it only models memory.
Typically, applications request Resource of suitable
capability to run their component tasks.
ResourceRequest,
AMRMProtocol.allocate(org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest)| Constructor Summary | |
|---|---|
Resource()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
abstract int |
getMemory()
Get memory of the resource. |
int |
hashCode()
|
abstract void |
setMemory(int memory)
Set memory of the resource. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public Resource()
| Method Detail |
|---|
@InterfaceAudience.Public @InterfaceStability.Stable public abstract int getMemory()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract void setMemory(int memory)
memory - memory of the resourcepublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||