public final class MachineNode extends Node
MachineNode
represents the configuration of a cluster node.
MachineNode
should be constructed by MachineNode.Builder
.限定符和类型 | 类和说明 |
---|---|
static class |
MachineNode.Builder
Builder for a NodeInfo object
|
限定符和类型 | 方法和说明 |
---|---|
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() |
compareTo, getChildren, getLevel, getName, getParent, hasChildren, toString
public long getMemory()
public int getMapSlots()
public int getReduceSlots()
public long getMemoryPerMapSlot()
public long getMemoryPerReduceSlot()
public int getNumCores()
public RackNode getRackNode()
Copyright © 2009 The Apache Software Foundation