public abstract class AbstractDNSToSwitchMapping extends Object implements DNSToSwitchMapping
It is not mandatory to derive DNSToSwitchMapping
implementations from it, but it is strongly recommended,
as it makes it easy for the developers to add new methods to this base class that are automatically picked up by all
implementations.
DEFAULT_RACK
Modifier | Constructor and Description |
---|---|
protected |
AbstractDNSToSwitchMapping()
Create an unconfigured instance.
|
Modifier and Type | Method and Description |
---|---|
String |
dumpTopology()
Generate a string listing the switch mapping implementation, the mapping for every known node and the number of nodes and unique
switches known about -each entry to a separate line.
|
Map<String,String> |
getSwitchMap()
Get a copy of the map (for diagnostics).
|
boolean |
isSingleSwitch()
Predicate that indicates that the switch mapping is known to be single-switch.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
resolve
protected AbstractDNSToSwitchMapping()
public boolean isSingleSwitch()
public Map<String,String> getSwitchMap()
public String dumpTopology()
Copyright © 2023 The Apache Software Foundation. All rights reserved.