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, parseTopologyTreepublic ZombieCluster(LoggedNetworkTopology topology, MachineNode defaultNode)
MachineNodes, and the parents of MachineNodes are
RackNodes. 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
MachineNodes, and the parents of MachineNodes are
RackNodes. 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.IOExceptionpublic ZombieCluster(InputStream input, MachineNode defaultNode) throws IOException
MachineNodes, and the parents of MachineNodes are
RackNodes. 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.IOExceptionpublic Node getClusterTopology()
ClusterStoryCopyright © 2009 The Apache Software Foundation