org.apache.hadoop.hbase.master
Interface MasterServices
- All Superinterfaces:
- Abortable, Server, Stoppable
- All Known Implementing Classes:
- HMaster, HMasterCommandLine.LocalHMaster
public interface MasterServices
- extends Server
Services Master supplies
getAssignmentManager
AssignmentManager getAssignmentManager()
- Returns:
- Master's instance of the
AssignmentManager
getMasterFileSystem
MasterFileSystem getMasterFileSystem()
- Returns:
- Master's filesystem
MasterFileSystem
utility class.
getServerManager
ServerManager getServerManager()
- Returns:
- Master's
ServerManager
instance.
getExecutorService
ExecutorService getExecutorService()
- Returns:
- Master's instance of
ExecutorService
checkTableModifiable
void checkTableModifiable(byte[] tableName)
throws IOException
- Check table is modifiable; i.e. exists and is offline.
- Parameters:
tableName
- Name of table to check.
- Throws:
TableNotDisabledException
TableNotFoundException
IOException
createTable
void createTable(HTableDescriptor desc,
byte[][] splitKeys)
throws IOException
- Create a table using the given table definition.
- Parameters:
desc
- The table definitionsplitKeys
- Starting row keys for the initial table regions. If null
a single region is created.
- Throws:
IOException
getTableDescriptors
TableDescriptors getTableDescriptors()
- Returns:
- Return table descriptors implementation.
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.