Class RemoteAdmin

java.lang.Object
org.apache.hadoop.hbase.rest.client.RemoteAdmin

@Private public class RemoteAdmin extends Object
  • Field Details

  • Constructor Details

    • RemoteAdmin

      public RemoteAdmin(org.apache.hadoop.hbase.rest.client.Client client, org.apache.hadoop.conf.Configuration conf)
      Constructor
    • RemoteAdmin

      public RemoteAdmin(org.apache.hadoop.hbase.rest.client.Client client, org.apache.hadoop.conf.Configuration conf, String accessToken)
      Constructor
  • Method Details

    • getUnmarsheller

      Throws:
      JAXBException
    • isTableAvailable

      public boolean isTableAvailable(String tableName) throws IOException
      Parameters:
      tableName - name of table to check
      Returns:
      true if all regions of the table are available
      Throws:
      IOException - if a remote or network exception occurs
    • getRestVersion

      public org.apache.hadoop.hbase.rest.model.VersionModel getRestVersion() throws IOException
      Returns:
      string representing the rest api's version if the endpoint does not exist, there is a timeout, or some other general failure mode
      Throws:
      IOException
    • getClusterStatus

      public org.apache.hadoop.hbase.rest.model.StorageClusterStatusModel getClusterStatus() throws IOException
      Returns:
      string representing the cluster's version
      Throws:
      IOException - if the endpoint does not exist, there is a timeout, or some other general failure mode
    • getClusterVersion

      public org.apache.hadoop.hbase.rest.model.StorageClusterVersionModel getClusterVersion() throws IOException
      Returns:
      string representing the cluster's version if the endpoint does not exist, there is a timeout, or some other general failure mode
      Throws:
      IOException
    • isTableAvailable

      public boolean isTableAvailable(byte[] tableName) throws IOException
      Parameters:
      tableName - name of table to check
      Returns:
      true if all regions of the table are available
      Throws:
      IOException - if a remote or network exception occurs
    • createTable

      public void createTable(org.apache.hadoop.hbase.HTableDescriptor desc) throws IOException
      Creates a new table.
      Parameters:
      desc - table descriptor for table
      Throws:
      IOException - if a remote or network exception occurs
    • deleteTable

      public void deleteTable(String tableName) throws IOException
      Deletes a table.
      Parameters:
      tableName - name of table to delete
      Throws:
      IOException - if a remote or network exception occurs
    • deleteTable

      public void deleteTable(byte[] tableName) throws IOException
      Deletes a table.
      Parameters:
      tableName - name of table to delete
      Throws:
      IOException - if a remote or network exception occurs
    • getTableList

      public org.apache.hadoop.hbase.rest.model.TableListModel getTableList() throws IOException
      Returns:
      string representing the cluster's version if the endpoint does not exist, there is a timeout, or some other general failure mode
      Throws:
      IOException
    • getInputStream

      private XMLStreamReader getInputStream(org.apache.hadoop.hbase.rest.client.Response response) throws IOException
      Convert the REST server's response to an XML reader.
      Parameters:
      response - The REST server's response.
      Returns:
      A reader over the parsed XML document.
      Throws:
      IOException - If the document fails to parse