|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HConnection
Method Summary | |
---|---|
void |
close(Text tableName)
Discard all the information about this table |
HRegionInterface |
getHRegionConnection(HServerAddress regionServer)
Establishes a connection to the region server at the specified address. |
HMasterInterface |
getMaster()
|
SortedMap<Text,HRegionLocation> |
getTableServers(Text tableName)
Gets the servers of the given table. |
boolean |
isMasterRunning()
|
HTableDescriptor[] |
listTables()
List all the userspace tables. |
SortedMap<Text,HRegionLocation> |
reloadTableServers(Text tableName)
Reloads servers for the specified table. |
boolean |
tableExists(Text tableName)
Checks if tableName exists. |
Method Detail |
---|
HMasterInterface getMaster() throws MasterNotRunningException
MasterNotRunningException
boolean isMasterRunning()
boolean tableExists(Text tableName)
tableName
exists.
tableName
- Table to check.
HTableDescriptor[] listTables() throws IOException
IOException
SortedMap<Text,HRegionLocation> getTableServers(Text tableName) throws IOException
tableName
- - the table to be located
IOException
- - if the table can not be located after retryingSortedMap<Text,HRegionLocation> reloadTableServers(Text tableName) throws IOException
tableName
- name of table whose servers are to be reloaded
IOException
HRegionInterface getHRegionConnection(HServerAddress regionServer) throws IOException
regionServer
- - the server to connect to
IOException
void close(Text tableName)
tableName
- the name of the table to close
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |