|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.net.CachedDNSToSwitchMapping
public class CachedDNSToSwitchMapping
A cached implementation of DNSToSwitchMapping that takes an raw DNSToSwitchMapping and stores the resolved network location in a cache. The following calls to a resolved network location will get its location from the cache.
Field Summary | |
---|---|
protected DNSToSwitchMapping |
rawMapping
|
Constructor Summary | |
---|---|
CachedDNSToSwitchMapping(DNSToSwitchMapping rawMapping)
|
Method Summary | |
---|---|
java.util.List<java.lang.String> |
resolve(java.util.List<java.lang.String> names)
Resolves a list of DNS-names/IP-addresses and returns back a list of switch information (network paths). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DNSToSwitchMapping rawMapping
Constructor Detail |
---|
public CachedDNSToSwitchMapping(DNSToSwitchMapping rawMapping)
Method Detail |
---|
public java.util.List<java.lang.String> resolve(java.util.List<java.lang.String> names)
DNSToSwitchMapping
resolve
in interface DNSToSwitchMapping
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |