org.apache.hadoop.hbase
Interface HMasterInterface

All Superinterfaces:
VersionedProtocol
All Known Implementing Classes:
HMaster

public interface HMasterInterface
extends VersionedProtocol

Clients interact with the HMasterInterface to gain access to meta-level HBase functionality, like finding an HRegionServer and creating/destroying tables.


Field Summary
static long versionID
          Interface version
 
Method Summary
 void addColumn(Text tableName, HColumnDescriptor column)
          Adds a column to the specified table
 void createTable(HTableDescriptor desc)
          Creates a new table
 void deleteColumn(Text tableName, Text columnName)
          Deletes a column from the specified table
 void deleteTable(Text tableName)
          Deletes a table
 void disableTable(Text tableName)
          Take table offline
 void enableTable(Text tableName)
          Puts the table on-line (only needed if table has been previously taken offline)
 HServerAddress findRootRegion()
          Get the location of the root region
 boolean isMasterRunning()
           
 void shutdown()
          Shutdown an HBase cluster.
 
Methods inherited from interface org.apache.hadoop.ipc.VersionedProtocol
getProtocolVersion
 

Field Detail

versionID

static final long versionID
Interface version

See Also:
Constant Field Values
Method Detail

isMasterRunning

boolean isMasterRunning()
Returns:
true if master is available

createTable

void createTable(HTableDescriptor desc)
                 throws IOException
Creates a new table

Parameters:
desc - table descriptor
Throws:
IOException

deleteTable

void deleteTable(Text tableName)
                 throws IOException
Deletes a table

Parameters:
tableName -
Throws:
IOException

addColumn

void addColumn(Text tableName,
               HColumnDescriptor column)
               throws IOException
Adds a column to the specified table

Parameters:
tableName -
column - column descriptor
Throws:
IOException

deleteColumn

void deleteColumn(Text tableName,
                  Text columnName)
                  throws IOException
Deletes a column from the specified table

Parameters:
tableName -
columnName -
Throws:
IOException

enableTable

void enableTable(Text tableName)
                 throws IOException
Puts the table on-line (only needed if table has been previously taken offline)

Parameters:
tableName -
Throws:
IOException

disableTable

void disableTable(Text tableName)
                  throws IOException
Take table offline

Parameters:
tableName -
Throws:
IOException

shutdown

void shutdown()
              throws IOException
Shutdown an HBase cluster.

Throws:
IOException

findRootRegion

HServerAddress findRootRegion()
Get the location of the root region

Returns:
address of server that serves the root region


Copyright © 2006 The Apache Software Foundation