@InterfaceAudience.Private public class RackManager extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
UNKNOWN_RACK |
| 构造器和说明 |
|---|
RackManager() |
RackManager(org.apache.hadoop.conf.Configuration conf) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<String> |
getRack(List<ServerName> servers)
Same as
getRack(ServerName) except that a list is passed |
String |
getRack(ServerName server)
Get the name of the rack containing a server, according to the DNS to
switch mapping.
|
public RackManager()
public RackManager(org.apache.hadoop.conf.Configuration conf)
public String getRack(ServerName server)
server - the server for which to get the rack namepublic List<String> getRack(List<ServerName> servers)
getRack(ServerName) except that a list is passedservers - list of servers we're requesting racks information forCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.