public final class MachineNode extends Node
MachineNode
represents the configuration of a cluster node.
MachineNode
should be constructed by MachineNode.Builder
.Modifier and Type | Class and Description |
---|---|
static class |
MachineNode.Builder
Builder for a NodeInfo object
|
Modifier and Type | Method and Description |
---|---|
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 © 2013 Apache Software Foundation. All rights reserved.