public static final class MachineNode.Builder extends Object
构造器和说明 |
---|
MachineNode.Builder(String name,
int level)
Start building a new NodeInfo object.
|
限定符和类型 | 方法和说明 |
---|---|
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.
|
public MachineNode.Builder(String name, int level)
name
- Unique name of the node. Typically the fully qualified domain
name.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.Copyright © 2009 The Apache Software Foundation