public class DFSTopologyNodeImpl
extends org.apache.hadoop.net.InnerNodeImpl
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(org.apache.hadoop.net.Node n) |
void |
childAddStorage(String childName,
org.apache.hadoop.fs.StorageType type)
Called by a child node of the current node to increment a storage count.
|
void |
childRemoveStorage(String childName,
org.apache.hadoop.fs.StorageType type)
Called by a child node of the current node to decrement a storage count.
|
boolean |
equals(Object o) |
int |
getSubtreeStorageCount(org.apache.hadoop.fs.StorageType type) |
int |
hashCode() |
boolean |
remove(org.apache.hadoop.net.Node n) |
getChildren, getLeaf, getLoc, getNextAncestorName, getNumOfChildren, getNumOfLeaves, isAncestor, isParent, isRackgetLevel, getName, getNetworkLocation, getParent, getPath, getPathComponents, locationToDepth, normalize, setLevel, setNetworkLocation, setParent, toStringpublic int getSubtreeStorageCount(org.apache.hadoop.fs.StorageType type)
public boolean add(org.apache.hadoop.net.Node n)
add in interface org.apache.hadoop.net.InnerNodeadd in class org.apache.hadoop.net.InnerNodeImplpublic boolean equals(Object o)
equals in class org.apache.hadoop.net.InnerNodeImplpublic int hashCode()
hashCode in class org.apache.hadoop.net.InnerNodeImplpublic boolean remove(org.apache.hadoop.net.Node n)
remove in interface org.apache.hadoop.net.InnerNoderemove in class org.apache.hadoop.net.InnerNodeImplpublic void childAddStorage(String childName, org.apache.hadoop.fs.StorageType type)
childName - the name of the child that tries to add the storage typetype - the type being incremented.public void childRemoveStorage(String childName, org.apache.hadoop.fs.StorageType type)
childName - the name of the child removing a storage type.type - the type being removed.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.