|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.tools.rumen.MachineNode.Builder
public static final class MachineNode.Builder
Builder for a NodeInfo object
| Constructor Summary | |
|---|---|
MachineNode.Builder(String name,
int level)
Start building a new NodeInfo object. |
|
| Method Summary | |
|---|---|
MachineNode |
build()
Build the MachineNode object. |
MachineNode.Builder |
cloneFrom(MachineNode ref)
Clone the settings from a reference MachineNode object. |
MachineNode.Builder |
setMapSlots(int mapSlots)
Set the number of map slot for the node. |
MachineNode.Builder |
setMemory(long memory)
Set the physical memory of the node. |
MachineNode.Builder |
setMemoryPerMapSlot(long memoryPerMapSlot)
Set the amount of RAM reserved for each map slot. |
MachineNode.Builder |
setMemoryPerReduceSlot(long memoryPerReduceSlot)
Set the amount of RAM reserved for each reduce slot. |
MachineNode.Builder |
setNumCores(int numCores)
Set the number of cores for the node. |
MachineNode.Builder |
setReduceSlots(int reduceSlots)
Set the number of reduce slot for the node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MachineNode.Builder(String name,
int level)
name - Unique name of the node. Typically the fully qualified domain
name.| Method Detail |
|---|
public MachineNode.Builder setMemory(long memory)
memory - Available RAM in KB.public MachineNode.Builder setMapSlots(int mapSlots)
mapSlots - The number of map slots for the node.public MachineNode.Builder setReduceSlots(int reduceSlots)
reduceSlots - The number of reduce slots for the node.public MachineNode.Builder setMemoryPerMapSlot(long memoryPerMapSlot)
memoryPerMapSlot - The amount of RAM reserved for each map slot, in KB.public MachineNode.Builder setMemoryPerReduceSlot(long memoryPerReduceSlot)
memoryPerReduceSlot - The amount of RAM reserved for each reduce slot, in KB.public MachineNode.Builder setNumCores(int numCores)
numCores - Number of cores for the node.public MachineNode.Builder cloneFrom(MachineNode ref)
MachineNode object.
ref - The reference MachineNode object.public MachineNode build()
MachineNode object.
MachineNode object being built.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||