org.apache.hadoop.hbase.rest.client
Class RemoteAdmin

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

public class RemoteAdmin
extends Object


Constructor Summary
RemoteAdmin(Client client, org.apache.hadoop.conf.Configuration conf)
          Constructor
RemoteAdmin(Client client, org.apache.hadoop.conf.Configuration conf, String accessToken)
          Constructor
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteAdmin

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

Parameters:
client -
conf -

RemoteAdmin

public RemoteAdmin(Client client,
                   org.apache.hadoop.conf.Configuration conf,
                   String accessToken)
Constructor

Parameters:
client -
conf -
accessToken -
Method Detail

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 VersionModel getRestVersion()
                            throws IOException
Returns:
string representing the rest api's version
Throws:
IOEXception - if the endpoint does not exist, there is a timeout, or some other general failure mode
IOException

getClusterStatus

public 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
IOException

getClusterVersion

public StorageClusterVersionModel getClusterVersion()
                                             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
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(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 TableListModel getTableList()
                            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
IOException


Copyright © 2015 The Apache Software Foundation. All Rights Reserved.