@InterfaceAudience.Private
public interface RSGroupInfoManager
RSGroupBasedLoadBalancer| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_REASSIGN_WAIT_INTERVAL |
static byte[] |
META_FAMILY_BYTES |
static byte[] |
META_QUALIFIER_BYTES |
static String |
REASSIGN_WAIT_INTERVAL_KEY |
static byte[] |
ROW_KEY |
static org.apache.hadoop.hbase.TableName |
RSGROUP_TABLE_NAME |
static String |
rsGroupZNode |
| Modifier and Type | Method and Description |
|---|---|
void |
addRSGroup(org.apache.hadoop.hbase.rsgroup.RSGroupInfo rsGroupInfo)
Add given RSGroupInfo to existing list of group infos.
|
org.apache.hadoop.hbase.rsgroup.RSGroupInfo |
getRSGroup(String groupName)
Gets
RSGroupInfo for the given group name. |
org.apache.hadoop.hbase.rsgroup.RSGroupInfo |
getRSGroupOfServer(org.apache.hadoop.hbase.net.Address serverHostPort)
Gets the group info of server.
|
String |
getRSGroupOfTable(org.apache.hadoop.hbase.TableName tableName)
Get the group membership of a table
|
boolean |
isOnline()
Whether the manager is able to fully return group metadata
|
List<org.apache.hadoop.hbase.rsgroup.RSGroupInfo> |
listRSGroups()
List the existing
RSGroupInfos. |
Set<org.apache.hadoop.hbase.net.Address> |
moveServers(Set<org.apache.hadoop.hbase.net.Address> servers,
String srcGroup,
String dstGroup)
Move servers to a new group.
|
void |
moveServersAndTables(Set<org.apache.hadoop.hbase.net.Address> servers,
Set<org.apache.hadoop.hbase.TableName> tables,
String srcGroup,
String dstGroup)
Move servers and tables to a new group.
|
void |
moveTables(Set<org.apache.hadoop.hbase.TableName> tableNames,
String groupName)
Set the group membership of a set of tables
|
void |
refresh()
Refresh/reload the group information from the persistent store
|
void |
removeRSGroup(String groupName)
Remove a region server group.
|
void |
removeServers(Set<org.apache.hadoop.hbase.net.Address> servers)
Remove decommissioned servers from rsgroup
|
void |
start() |
static final String REASSIGN_WAIT_INTERVAL_KEY
static final long DEFAULT_REASSIGN_WAIT_INTERVAL
static final org.apache.hadoop.hbase.TableName RSGROUP_TABLE_NAME
static final String rsGroupZNode
static final byte[] META_FAMILY_BYTES
static final byte[] META_QUALIFIER_BYTES
static final byte[] ROW_KEY
void start()
void addRSGroup(org.apache.hadoop.hbase.rsgroup.RSGroupInfo rsGroupInfo)
throws IOException
IOExceptionvoid removeRSGroup(String groupName) throws IOException
IOExceptionSet<org.apache.hadoop.hbase.net.Address> moveServers(Set<org.apache.hadoop.hbase.net.Address> servers, String srcGroup, String dstGroup) throws IOException
servers - list of servers, must be part of the same groupsrcGroup - groupName being moved fromdstGroup - groupName being moved toservers).IOExceptionorg.apache.hadoop.hbase.rsgroup.RSGroupInfo getRSGroupOfServer(org.apache.hadoop.hbase.net.Address serverHostPort)
throws IOException
IOExceptionorg.apache.hadoop.hbase.rsgroup.RSGroupInfo getRSGroup(String groupName) throws IOException
RSGroupInfo for the given group name.IOExceptionString getRSGroupOfTable(org.apache.hadoop.hbase.TableName tableName) throws IOException
IOExceptionvoid moveTables(Set<org.apache.hadoop.hbase.TableName> tableNames, String groupName) throws IOException
tableNames - set of tables to movegroupName - name of group of tables to move toIOExceptionList<org.apache.hadoop.hbase.rsgroup.RSGroupInfo> listRSGroups() throws IOException
RSGroupInfos.IOExceptionvoid refresh()
throws IOException
IOExceptionboolean isOnline()
void moveServersAndTables(Set<org.apache.hadoop.hbase.net.Address> servers, Set<org.apache.hadoop.hbase.TableName> tables, String srcGroup, String dstGroup) throws IOException
servers - list of servers, must be part of the same grouptables - set of tables to movesrcGroup - groupName being moved fromdstGroup - groupName being moved toIOExceptionvoid removeServers(Set<org.apache.hadoop.hbase.net.Address> servers) throws IOException
servers - set of servers to removeIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.