@InterfaceAudience.Private public class DeleteTableHandler extends TableEventHandler
EventHandler.EventHandlerListener| Modifier and Type | Field and Description |
|---|---|
protected HTableDescriptor |
hTableDescriptor |
masterServices, tableLock, tableNameeventType, seqids, server, waitingTimeForEvents| Constructor and Description |
|---|
DeleteTableHandler(TableName tableName,
Server server,
MasterServices masterServices) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleTableOperation(java.util.List<HRegionInfo> regions) |
protected void |
prepareWithTableLock()
Called from prepare() while holding the table lock.
|
protected void |
releaseTableLock() |
protected void |
removeTableData(java.util.List<HRegionInfo> regions)
Removes the table from hbase:meta and archives the HDFS files.
|
java.lang.String |
toString() |
protected void |
waitRegionInTransition(java.util.List<HRegionInfo> regions) |
completed, getTableDescriptor, prepare, process, reOpenAllRegionscompareTo, getEventType, getInformativeName, getListener, getPriority, getSeqid, handleException, run, setListenerprotected HTableDescriptor hTableDescriptor
public DeleteTableHandler(TableName tableName, Server server, MasterServices masterServices)
protected void prepareWithTableLock()
throws java.io.IOException
TableEventHandlerprepareWithTableLock in class TableEventHandlerjava.io.IOExceptionprotected void waitRegionInTransition(java.util.List<HRegionInfo> regions) throws java.io.IOException, CoordinatedStateException
java.io.IOExceptionCoordinatedStateExceptionprotected void handleTableOperation(java.util.List<HRegionInfo> regions) throws java.io.IOException, CoordinatedStateException
handleTableOperation in class TableEventHandlerjava.io.IOExceptionCoordinatedStateExceptionprotected void removeTableData(java.util.List<HRegionInfo> regions) throws java.io.IOException, CoordinatedStateException
java.io.IOExceptionCoordinatedStateExceptionprotected void releaseTableLock()
releaseTableLock in class TableEventHandlerpublic java.lang.String toString()
toString in class EventHandler