@InterfaceAudience.Public public class RemoteAdmin extends Object
Constructor and Description |
---|
RemoteAdmin(Client client,
org.apache.hadoop.conf.Configuration conf)
Constructor
|
RemoteAdmin(Client client,
org.apache.hadoop.conf.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, org.apache.hadoop.conf.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 modepublic StorageClusterStatusModel getClusterStatus() throws IOException
IOException
- if the endpoint does not exist, there is a timeout, or some other general failure modepublic StorageClusterVersionModel getClusterVersion() throws IOException
IOException
- if the endpoint does not exist, there is a timeout, or some other
general failure modepublic 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 modeCopyright © 2007–2019 Cloudera. All rights reserved.