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, getNumOfLeaves, isAncestor, isParent, isRack
getLevel, getName, getNetworkLocation, getParent, getPath, getPathComponents, locationToDepth, normalize, setLevel, setNetworkLocation, setParent, toString
public int getSubtreeStorageCount(org.apache.hadoop.fs.StorageType type)
public boolean add(org.apache.hadoop.net.Node n)
add
in interface org.apache.hadoop.net.InnerNode
add
in class org.apache.hadoop.net.InnerNodeImpl
public boolean equals(Object o)
equals
in class org.apache.hadoop.net.InnerNodeImpl
public int hashCode()
hashCode
in class org.apache.hadoop.net.InnerNodeImpl
public boolean remove(org.apache.hadoop.net.Node n)
remove
in interface org.apache.hadoop.net.InnerNode
remove
in class org.apache.hadoop.net.InnerNodeImpl
public 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 © 2018 Apache Software Foundation. All Rights Reserved.