@InterfaceAudience.Public @InterfaceStability.Stable 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.
|
org.apache.hadoop.hbase.rest.model.StorageClusterStatusModel |
getClusterStatus() |
org.apache.hadoop.hbase.rest.model.StorageClusterVersionModel |
getClusterVersion() |
org.apache.hadoop.hbase.rest.model.VersionModel |
getRestVersion() |
org.apache.hadoop.hbase.rest.model.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 org.apache.hadoop.hbase.rest.model.VersionModel getRestVersion() throws IOException
IOException
- if the endpoint does not exist, there is a timeout, or some other
general failure modepublic org.apache.hadoop.hbase.rest.model.StorageClusterStatusModel getClusterStatus() throws IOException
IOException
- if the endpoint does not exist, there is a timeout, or some other general failure modepublic org.apache.hadoop.hbase.rest.model.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 org.apache.hadoop.hbase.rest.model.TableListModel getTableList() throws IOException
IOException
- if the endpoint does not exist, there is a timeout, or some other
general failure modeCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.