|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.tools.rumen.Node
org.apache.hadoop.tools.rumen.MachineNode
public final class MachineNode
MachineNode
represents the configuration of a cluster node.
MachineNode
should be constructed by MachineNode.Builder
.
Nested Class Summary | |
---|---|
static class |
MachineNode.Builder
Builder for a NodeInfo object |
Method Summary | |
---|---|
boolean |
addChild(Node child)
Add a child node to this node. |
boolean |
equals(Object obj)
|
int |
getMapSlots()
Get the number of map slots of the node. |
long |
getMemory()
Get the available physical RAM of the node. |
long |
getMemoryPerMapSlot()
Get the amount of RAM reserved for each map slot. |
long |
getMemoryPerReduceSlot()
Get the amount of RAM reserved for each reduce slot. |
int |
getNumCores()
Get the number of cores of the node. |
RackNode |
getRackNode()
Get the rack node that the machine belongs to. |
int |
getReduceSlots()
Get the number of reduce slots of the node. |
int |
hashCode()
|
Methods inherited from class org.apache.hadoop.tools.rumen.Node |
---|
compareTo, getChildren, getLevel, getName, getParent, hasChildren, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean equals(Object obj)
equals
in class Node
public int hashCode()
hashCode
in class Node
public long getMemory()
public int getMapSlots()
public int getReduceSlots()
public long getMemoryPerMapSlot()
public long getMemoryPerReduceSlot()
public int getNumCores()
public RackNode getRackNode()
public boolean addChild(Node child)
Node
addChild
in class Node
child
- The child node to be added. The child node should currently not be belong to another cluster topology.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |