@InterfaceAudience.Private public class CreateTableHandler extends EventHandler
EventHandler.EventHandlerListener, EventHandler.EventType
Modifier and Type | Field and Description |
---|---|
protected AssignmentManager |
assignmentManager |
protected CatalogTracker |
catalogTracker |
protected org.apache.hadoop.conf.Configuration |
conf |
protected MasterFileSystem |
fileSystemManager |
protected HTableDescriptor |
hTableDescriptor |
protected ServerManager |
serverManager |
eventType, seqids, server, waitingTimeForEvents
Constructor and Description |
---|
CreateTableHandler(Server server,
MasterFileSystem fileSystemManager,
ServerManager serverManager,
HTableDescriptor hTableDescriptor,
org.apache.hadoop.conf.Configuration conf,
HRegionInfo[] newRegions,
CatalogTracker catalogTracker,
AssignmentManager assignmentManager) |
Modifier and Type | Method and Description |
---|---|
protected void |
addRegionsToMeta(CatalogTracker ct,
List<HRegionInfo> regionInfos)
Add the specified set of regions to the META table.
|
protected void |
completed(Throwable exception)
Called after that process() is completed.
|
protected List<HRegionInfo> |
handleCreateHdfsRegions(org.apache.hadoop.fs.Path tableRootDir,
String tableName)
Create the on-disk structure for the table, and returns the regions info.
|
void |
process()
This method is the main processing loop to be implemented by the various
subclasses.
|
String |
toString() |
compareTo, getEventType, getInformativeName, getListener, getPriority, getSeqid, run, setListener
protected MasterFileSystem fileSystemManager
protected final HTableDescriptor hTableDescriptor
protected org.apache.hadoop.conf.Configuration conf
protected final AssignmentManager assignmentManager
protected final CatalogTracker catalogTracker
protected final ServerManager serverManager
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
public String toString()
toString
in class EventHandler
public void process()
EventHandler
process
in class EventHandler
protected void completed(Throwable exception)
exception
- null if process() is successful or not null if something has failed.protected List<HRegionInfo> handleCreateHdfsRegions(org.apache.hadoop.fs.Path tableRootDir, String tableName) throws IOException
tableRootDir
- directory where the table is being createdtableName
- name of the table under constructionIOException
protected void addRegionsToMeta(CatalogTracker ct, List<HRegionInfo> regionInfos) throws IOException
IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.