java.lang.Comparable<Node>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 | Description |
|---|---|---|
static class |
MachineNode.Builder |
Builder for a NodeInfo object
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addChild(Node child) |
Add a child node to this node.
|
boolean |
equals(java.lang.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, toStringpublic long getMemory()
public int getMapSlots()
public int getReduceSlots()
public long getMemoryPerMapSlot()
public long getMemoryPerReduceSlot()
public int getNumCores()
public RackNode getRackNode()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.