public class ZombieCluster extends AbstractClusterStory
ZombieCluster
rebuilds the cluster topology using the information
obtained from job history logs.machineNodes, maximumDistance, mNodeMap, mNodesFlattened, rackNodes, rNodeMap
构造器和说明 |
---|
ZombieCluster(InputStream input,
MachineNode defaultNode)
Construct a homogeneous cluster.
|
ZombieCluster(LoggedNetworkTopology topology,
MachineNode defaultNode)
Construct a homogeneous cluster.
|
ZombieCluster(Path path,
MachineNode defaultNode,
Configuration conf)
Construct a homogeneous cluster.
|
限定符和类型 | 方法和说明 |
---|---|
Node |
getClusterTopology()
Get the cluster topology tree.
|
buildMachineNodeMap, buildRackNodeMap, distance, getMachineByName, getMachines, getMaximumDistance, getRackByName, getRacks, getRandomMachines, parseTopologyTree
public ZombieCluster(LoggedNetworkTopology topology, MachineNode defaultNode)
MachineNode
s, and the parents of MachineNode
s are
RackNode
s. We also expect all leaf nodes are on the same level.topology
- The network topology.defaultNode
- The default node setting.public ZombieCluster(Path path, MachineNode defaultNode, Configuration conf) throws IOException
MachineNode
s, and the parents of MachineNode
s are
RackNode
s. We also expect all leaf nodes are on the same level.path
- Path to the JSON-encoded topology file.conf
- defaultNode
- The default node setting.IOException
public ZombieCluster(InputStream input, MachineNode defaultNode) throws IOException
MachineNode
s, and the parents of MachineNode
s are
RackNode
s. We also expect all leaf nodes are on the same level.input
- The input stream for the JSON-encoded topology file.defaultNode
- The default node setting.IOException
public Node getClusterTopology()
ClusterStory
Copyright © 2009 The Apache Software Foundation