@InterfaceAudience.Public @InterfaceStability.Stable public abstract class Resource extends Object implements Comparable<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.
Constructor and Description |
---|
Resource() |
Modifier and Type | Method and Description |
---|---|
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() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo
public Resource()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract int getMemory()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract void setMemory(int memory)
memory
- memory of the resourceCopyright © 2014 Apache Software Foundation. All Rights Reserved.