@InterfaceAudience.Public @InterfaceStability.Stable public class RemoteAdmin extends Object
| 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. 
 | 
StorageClusterStatusModel | 
getClusterStatus()  | 
StorageClusterVersionModel | 
getClusterVersion()  | 
VersionModel | 
getRestVersion()  | 
TableListModel | 
getTableList()  | 
boolean | 
isTableAvailable(byte[] tableName)  | 
boolean | 
isTableAvailable(String tableName)  | 
public RemoteAdmin(Client client, Configuration conf)
client - conf - public boolean isTableAvailable(String tableName) throws IOException
tableName - name of table to checkIOException - if a remote or network exception occurspublic VersionModel getRestVersion() throws IOException
IOEXception - if the endpoint does not exist, there is a timeout, or some other
           general failure modeIOExceptionpublic StorageClusterStatusModel getClusterStatus() throws IOException
IOEXception - if the endpoint does not exist, there is a timeout, or some other general failure modeIOExceptionpublic StorageClusterVersionModel getClusterVersion() throws IOException
IOEXception - if the endpoint does not exist, there is a timeout, or some other
           general failure modeIOExceptionpublic 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 occurspublic TableListModel getTableList() throws IOException
IOEXception - if the endpoint does not exist, there is a timeout, or some other
           general failure modeIOException