public class RemoteAdmin extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) String |
accessToken |
(package private) Client |
client |
(package private) Configuration |
conf |
(package private) int |
maxRetries |
(package private) long |
sleepTime |
| Constructor and Description |
|---|
RemoteAdmin(Client client,
Configuration conf)
Constructor
|
RemoteAdmin(Client client,
Configuration conf,
String accessToken)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
createTable(HTableDescriptor desc)
Creates a new table.
|
void |
deleteTable(byte[] tableName)
Deletes a table.
|
void |
deleteTable(String tableName)
Deletes a table.
|
boolean |
isTableAvailable(byte[] tableName) |
boolean |
isTableAvailable(String tableName) |
final Configuration conf
final String accessToken
final int maxRetries
final long sleepTime
public RemoteAdmin(Client client, Configuration conf)
client - conf - public RemoteAdmin(Client client, Configuration conf, String accessToken)
client - conf - accessToken - public boolean isTableAvailable(String tableName) throws IOException
tableName - name of table to checkIOException - if a remote or network exception occurspublic boolean isTableAvailable(byte[] tableName) throws IOException
tableName - name of table to checkIOException - if a remote or network exception occurspublic void createTable(HTableDescriptor desc) throws IOException
desc - table descriptor for tableIOException - if a remote or network exception occurspublic void deleteTable(String tableName) throws IOException
tableName - name of table to deleteIOException - if a remote or network exception occurspublic void deleteTable(byte[] tableName) throws IOException
tableName - name of table to deleteIOException - if a remote or network exception occurs