public class DFSNetworkTopology
extends org.apache.hadoop.net.NetworkTopology
| Constructor | Description |
|---|---|
DFSNetworkTopology() |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.hadoop.net.Node |
chooseRandomWithStorageType(java.lang.String scope,
java.util.Collection<org.apache.hadoop.net.Node> excludedNodes,
org.apache.hadoop.fs.StorageType type) |
Randomly choose one node from scope, with specified storage type.
|
org.apache.hadoop.net.Node |
chooseRandomWithStorageTypeTwoTrial(java.lang.String scope,
java.util.Collection<org.apache.hadoop.net.Node> excludedNodes,
org.apache.hadoop.fs.StorageType type) |
Randomly choose one node from scope with the given storage type.
|
static DFSNetworkTopology |
getInstance(org.apache.hadoop.conf.Configuration conf) |
add, chooseRandom, chooseRandom, chooseRandom, contains, countNumOfAvailableNodes, decommissionNode, getDatanodesInRack, getDistance, getDistanceByPath, getFirstHalf, getInstance, getLastHalf, getLeaves, getNode, getNodeForNetworkLocation, getNumOfLeaves, getNumOfNonEmptyRacks, getNumOfRacks, getRack, getWeight, getWeightUsingNetworkLocation, hasClusterEverBeenMultiRack, incrementRacks, init, isChildScope, isNodeGroupAware, isNodeInScope, isOnSameNodeGroup, isOnSameRack, isSameParents, recommissionNode, remove, sortByDistance, sortByDistance, sortByDistanceUsingNetworkLocation, sortByDistanceUsingNetworkLocation, toStringpublic static DFSNetworkTopology getInstance(org.apache.hadoop.conf.Configuration conf)
public org.apache.hadoop.net.Node chooseRandomWithStorageType(java.lang.String scope,
java.util.Collection<org.apache.hadoop.net.Node> excludedNodes,
org.apache.hadoop.fs.StorageType type)
scope - range of nodes from which a node will be chosenexcludedNodes - nodes to be excluded fromtype - the storage type we search forpublic org.apache.hadoop.net.Node chooseRandomWithStorageTypeTwoTrial(java.lang.String scope,
java.util.Collection<org.apache.hadoop.net.Node> excludedNodes,
org.apache.hadoop.fs.StorageType type)
scope - range of nodes from which a node will be chosenexcludedNodes - nodes to be excluded fromtype - the storage type we search forCopyright © 2008–2025 Apache Software Foundation. All rights reserved.