org.apache.hadoop.hbase.master.handler
Class TableModifyFamilyHandler

java.lang.Object
  extended by org.apache.hadoop.hbase.executor.EventHandler
      extended by org.apache.hadoop.hbase.master.handler.TableEventHandler
          extended by org.apache.hadoop.hbase.master.handler.TableModifyFamilyHandler
All Implemented Interfaces:
Comparable<Runnable>, Runnable

@InterfaceAudience.Private
public class TableModifyFamilyHandler
extends TableEventHandler

Handles adding a new family to an existing table.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.executor.EventHandler
EventHandler.EventHandlerListener
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.master.handler.TableEventHandler
masterServices, tableLock, tableName
 
Fields inherited from class org.apache.hadoop.hbase.executor.EventHandler
eventType, seqids, server, waitingTimeForEvents
 
Constructor Summary
TableModifyFamilyHandler(TableName tableName, HColumnDescriptor familyDesc, Server server, MasterServices masterServices)
           
 
Method Summary
protected  void handleTableOperation(List<HRegionInfo> regions)
           
protected  void prepareWithTableLock()
          Called from prepare() while holding the table lock.
 String toString()
           
 
Methods inherited from class org.apache.hadoop.hbase.master.handler.TableEventHandler
completed, getTableDescriptor, prepare, process, releaseTableLock, reOpenAllRegions
 
Methods inherited from class org.apache.hadoop.hbase.executor.EventHandler
compareTo, getEventType, getInformativeName, getListener, getPriority, getSeqid, run, setListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TableModifyFamilyHandler

public TableModifyFamilyHandler(TableName tableName,
                                HColumnDescriptor familyDesc,
                                Server server,
                                MasterServices masterServices)
Method Detail

prepareWithTableLock

protected void prepareWithTableLock()
                             throws IOException
Description copied from class: TableEventHandler
Called from prepare() while holding the table lock. Subclasses can do extra initialization, and not worry about the releasing the table lock.

Overrides:
prepareWithTableLock in class TableEventHandler
Throws:
IOException

handleTableOperation

protected void handleTableOperation(List<HRegionInfo> regions)
                             throws IOException
Specified by:
handleTableOperation in class TableEventHandler
Throws:
IOException

toString

public String toString()
Overrides:
toString in class EventHandler


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.