org.apache.hadoop.hbase.master
Class RackManager

java.lang.Object
  extended by org.apache.hadoop.hbase.master.RackManager

@InterfaceAudience.Private
public class RackManager
extends Object

Wrapper over the rack resolution utility in Hadoop. The rack resolution utility in Hadoop does resolution from hosts to the racks they belong to.


Field Summary
static String UNKNOWN_RACK
           
 
Constructor Summary
RackManager(org.apache.hadoop.conf.Configuration conf)
           
 
Method Summary
 String getRack(ServerName server)
          Get the name of the rack containing a server, according to the DNS to switch mapping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN_RACK

public static final String UNKNOWN_RACK
See Also:
Constant Field Values
Constructor Detail

RackManager

public RackManager(org.apache.hadoop.conf.Configuration conf)
Method Detail

getRack

public String getRack(ServerName server)
Get the name of the rack containing a server, according to the DNS to switch mapping.

Parameters:
server - the server for which to get the rack name
Returns:
the rack name of the server


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.