@InterfaceAudience.Public @InterfaceStability.Stable public class RemoteAdmin extends java.lang.Object
| Constructor and Description |
|---|
RemoteAdmin(Client client,
Configuration conf)
Constructor
|
RemoteAdmin(Client client,
Configuration conf,
java.lang.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(java.lang.String tableName)
Deletes a table.
|
StorageClusterStatusModel |
getClusterStatus() |
StorageClusterVersionModel |
getClusterVersion() |
VersionModel |
getRestVersion() |
TableListModel |
getTableList() |
boolean |
isTableAvailable(byte[] tableName) |
boolean |
isTableAvailable(java.lang.String tableName) |
public RemoteAdmin(Client client, Configuration conf)
client - conf - public RemoteAdmin(Client client, Configuration conf, java.lang.String accessToken)
client - conf - accessToken - public boolean isTableAvailable(java.lang.String tableName)
throws java.io.IOException
tableName - name of table to checkjava.io.IOException - if a remote or network exception occurspublic VersionModel getRestVersion() throws java.io.IOException
IOEXception - if the endpoint does not exist, there is a timeout, or some other
general failure modejava.io.IOExceptionpublic StorageClusterStatusModel getClusterStatus() throws java.io.IOException
IOEXception - if the endpoint does not exist, there is a timeout, or some other general failure modejava.io.IOExceptionpublic StorageClusterVersionModel getClusterVersion() throws java.io.IOException
IOEXception - if the endpoint does not exist, there is a timeout, or some other
general failure modejava.io.IOExceptionpublic boolean isTableAvailable(byte[] tableName)
throws java.io.IOException
tableName - name of table to checkjava.io.IOException - if a remote or network exception occurspublic void createTable(HTableDescriptor desc) throws java.io.IOException
desc - table descriptor for tablejava.io.IOException - if a remote or network exception occurspublic void deleteTable(java.lang.String tableName)
throws java.io.IOException
tableName - name of table to deletejava.io.IOException - if a remote or network exception occurspublic void deleteTable(byte[] tableName)
throws java.io.IOException
tableName - name of table to deletejava.io.IOException - if a remote or network exception occurspublic TableListModel getTableList() throws java.io.IOException
IOEXception - if the endpoint does not exist, there is a timeout, or some other
general failure modejava.io.IOException