|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@InterfaceAudience.Private public interface MasterServices
Services Master supplies
Method Summary | |
---|---|
void |
addColumn(byte[] tableName,
HColumnDescriptor column)
Add a new column to an existing table |
void |
checkTableModifiable(byte[] tableName)
Check table is modifiable; i.e. |
void |
createTable(HTableDescriptor desc,
byte[][] splitKeys)
Create a table using the given table definition. |
void |
deleteColumn(byte[] tableName,
byte[] columnName)
Delete a column from an existing table |
void |
deleteTable(byte[] tableName)
Delete a table |
void |
disableTable(byte[] tableName)
Disable an existing table |
void |
dispatchMergingRegions(HRegionInfo region_a,
HRegionInfo region_b,
boolean forcible)
Merge two regions. |
void |
enableTable(byte[] tableName)
Enable an existing table |
AssignmentManager |
getAssignmentManager()
|
MasterCoprocessorHost |
getCoprocessorHost()
|
ExecutorService |
getExecutorService()
|
MasterFileSystem |
getMasterFileSystem()
|
ServerManager |
getServerManager()
|
TableDescriptors |
getTableDescriptors()
|
TableLockManager |
getTableLockManager()
|
boolean |
isServerShutdownHandlerEnabled()
|
void |
modifyColumn(byte[] tableName,
HColumnDescriptor descriptor)
Modify the column descriptor of an existing column in an existing table |
void |
modifyTable(byte[] tableName,
HTableDescriptor descriptor)
Modify the descriptor of an existing table |
boolean |
registerService(com.google.protobuf.Service instance)
Registers a new protocol buffer Service subclass as a master coprocessor endpoint to
be available for handling
MasterAdminProtos.MasterAdminService.BlockingInterface.execMasterService(com.google.protobuf.RpcController,
org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceRequest) calls. |
Methods inherited from interface org.apache.hadoop.hbase.Server |
---|
getCatalogTracker, getConfiguration, getServerName, getZooKeeper |
Methods inherited from interface org.apache.hadoop.hbase.Abortable |
---|
abort, isAborted |
Methods inherited from interface org.apache.hadoop.hbase.Stoppable |
---|
isStopped, stop |
Method Detail |
---|
AssignmentManager getAssignmentManager()
AssignmentManager
MasterFileSystem getMasterFileSystem()
MasterFileSystem
utility class.ServerManager getServerManager()
ServerManager
instance.ExecutorService getExecutorService()
ExecutorService
TableLockManager getTableLockManager()
TableLockManager
MasterCoprocessorHost getCoprocessorHost()
MasterCoprocessorHost
void checkTableModifiable(byte[] tableName) throws IOException, TableNotFoundException, TableNotDisabledException
tableName
- Name of table to check.
TableNotDisabledException
TableNotFoundException
IOException
void createTable(HTableDescriptor desc, byte[][] splitKeys) throws IOException
desc
- The table definitionsplitKeys
- Starting row keys for the initial table regions. If null
a single region is created.
IOException
void deleteTable(byte[] tableName) throws IOException
tableName
- The table name
IOException
void modifyTable(byte[] tableName, HTableDescriptor descriptor) throws IOException
tableName
- The table namedescriptor
- The updated table descriptor
IOException
void enableTable(byte[] tableName) throws IOException
tableName
- The table name
IOException
void disableTable(byte[] tableName) throws IOException
tableName
- The table name
IOException
void addColumn(byte[] tableName, HColumnDescriptor column) throws IOException
tableName
- The table namecolumn
- The column definition
IOException
void modifyColumn(byte[] tableName, HColumnDescriptor descriptor) throws IOException
tableName
- The table namedescriptor
- The updated column definition
IOException
void deleteColumn(byte[] tableName, byte[] columnName) throws IOException
tableName
- The table namecolumnName
- The column name
IOException
TableDescriptors getTableDescriptors()
boolean isServerShutdownHandlerEnabled()
boolean registerService(com.google.protobuf.Service instance)
Service
subclass as a master coprocessor endpoint to
be available for handling
MasterAdminProtos.MasterAdminService.BlockingInterface.execMasterService(com.google.protobuf.RpcController,
org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceRequest)
calls.
Only a single instance may be registered for a given Service
subclass (the
instances are keyed on Descriptors.ServiceDescriptor.getFullName()
.
After the first registration, subsequent calls with the same service name will fail with
a return value of false
.
instance
- the Service
subclass instance to expose as a coprocessor endpoint
true
if the registration was successful, false
otherwisevoid dispatchMergingRegions(HRegionInfo region_a, HRegionInfo region_b, boolean forcible) throws IOException
region_a
- region to mergeregion_b
- region to mergeforcible
- true if do a compulsory merge, otherwise we will only merge
two adjacent regions
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |