@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 TableName |
RSGROUP_TABLE_NAME |
static String |
rsGroupZNode |
| Modifier and Type | Method and Description |
|---|---|
void |
addRSGroup(RSGroupInfo rsGroupInfo)
Add given RSGroupInfo to existing list of group infos.
|
RSGroupInfo |
determineRSGroupInfoForTable(TableName tableName)
Determine
RSGroupInfo for the given table. |
RSGroupInfo |
getRSGroup(String groupName)
Gets
RSGroupInfo for the given group name. |
RSGroupInfo |
getRSGroupOfServer(Address serverHostPort)
Gets the group info of server.
|
String |
getRSGroupOfTable(TableName tableName)
Get the group membership of a table
|
boolean |
isOnline()
Whether the manager is able to fully return group metadata
|
List<RSGroupInfo> |
listRSGroups()
List the existing
RSGroupInfos. |
Set<Address> |
moveServers(Set<Address> servers,
String srcGroup,
String dstGroup)
Move servers to a new group.
|
void |
moveServersAndTables(Set<Address> servers,
Set<TableName> tables,
String srcGroup,
String dstGroup)
Move servers and tables to a new group.
|
void |
moveTables(Set<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<Address> servers)
Remove decommissioned servers from rsgroup
|
void |
renameRSGroup(String oldName,
String newName)
Rename RSGroup
|
void |
start() |
static final String REASSIGN_WAIT_INTERVAL_KEY
static final long DEFAULT_REASSIGN_WAIT_INTERVAL
static final 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(RSGroupInfo rsGroupInfo) throws IOException
IOExceptionvoid removeRSGroup(String groupName) throws IOException
IOExceptionSet<Address> moveServers(Set<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).IOExceptionRSGroupInfo getRSGroupOfServer(Address serverHostPort) throws IOException
IOExceptionRSGroupInfo getRSGroup(String groupName) throws IOException
RSGroupInfo for the given group name.IOExceptionString getRSGroupOfTable(TableName tableName) throws IOException
IOExceptionvoid moveTables(Set<TableName> tableNames, String groupName) throws IOException
tableNames - set of tables to movegroupName - name of group of tables to move toIOExceptionList<RSGroupInfo> listRSGroups() throws IOException
RSGroupInfos.IOExceptionvoid refresh() throws IOException
IOExceptionboolean isOnline()
void moveServersAndTables(Set<Address> servers, Set<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<Address> servers) throws IOException
servers - set of servers to removeIOExceptionvoid renameRSGroup(String oldName, String newName) throws IOException
oldName - old rsgroup namenewName - new rsgroup nameIOExceptionRSGroupInfo determineRSGroupInfoForTable(TableName tableName) throws IOException
RSGroupInfo for the given table.tableName - table nameRSGroupInfo which table should belong toIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.