org.apache.hadoop.hbase.master.handler
Class CreateTableHandler
java.lang.Object
org.apache.hadoop.hbase.executor.EventHandler
org.apache.hadoop.hbase.master.handler.CreateTableHandler
- All Implemented Interfaces:
- Comparable<Runnable>, Runnable
- Direct Known Subclasses:
- CloneSnapshotHandler
@InterfaceAudience.Private
public class CreateTableHandler
- extends EventHandler
Handler to create a table.
fileSystemManager
protected MasterFileSystem fileSystemManager
hTableDescriptor
protected final HTableDescriptor hTableDescriptor
conf
protected org.apache.hadoop.conf.Configuration conf
assignmentManager
protected final AssignmentManager assignmentManager
catalogTracker
protected final CatalogTracker catalogTracker
serverManager
protected final ServerManager serverManager
CreateTableHandler
public CreateTableHandler(Server server,
MasterFileSystem fileSystemManager,
ServerManager serverManager,
HTableDescriptor hTableDescriptor,
org.apache.hadoop.conf.Configuration conf,
HRegionInfo[] newRegions,
CatalogTracker catalogTracker,
AssignmentManager assignmentManager)
throws NotAllMetaRegionsOnlineException,
TableExistsException,
IOException
- Throws:
NotAllMetaRegionsOnlineException
TableExistsException
IOException
toString
public String toString()
- Overrides:
toString
in class EventHandler
process
public void process()
- Description copied from class:
EventHandler
- This method is the main processing loop to be implemented by the various
subclasses.
- Specified by:
process
in class EventHandler
completed
protected void completed(Throwable exception)
- Called after that process() is completed.
- Parameters:
exception
- null if process() is successful or not null if something has failed.
handleCreateHdfsRegions
protected List<HRegionInfo> handleCreateHdfsRegions(org.apache.hadoop.fs.Path tableRootDir,
String tableName)
throws IOException
- Create the on-disk structure for the table, and returns the regions info.
- Parameters:
tableRootDir
- directory where the table is being createdtableName
- name of the table under construction
- Returns:
- the list of regions created
- Throws:
IOException
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.