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

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

public class RemoteAdmin
extends Object


Constructor Summary
RemoteAdmin(Client client, HBaseConfiguration conf)
          Constructor
RemoteAdmin(Client client, HBaseConfiguration 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.
 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,
                   HBaseConfiguration conf)
Constructor

Parameters:
client -
conf -

RemoteAdmin

public RemoteAdmin(Client client,
                   HBaseConfiguration 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

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


Copyright © 2010 The Apache Software Foundation