@InterfaceAudience.Private public class DeleteTableHandler extends TableEventHandler
EventHandler.EventHandlerListener
Modifier and Type | Field and Description |
---|---|
protected HTableDescriptor |
hTableDescriptor |
masterServices, tableLock, tableName
eventType, seqids, server, waitingTimeForEvents
Constructor and Description |
---|
DeleteTableHandler(TableName tableName,
Server server,
MasterServices masterServices) |
Modifier and Type | Method and Description |
---|---|
protected void |
handleTableOperation(List<HRegionInfo> regions) |
protected void |
prepareWithTableLock()
Called from prepare() while holding the table lock.
|
protected void |
releaseTableLock() |
protected void |
removeTableData(List<HRegionInfo> regions)
Removes the table from hbase:meta and archives the HDFS files.
|
String |
toString() |
protected void |
waitRegionInTransition(List<HRegionInfo> regions) |
completed, getTableDescriptor, prepare, process, reOpenAllRegions
compareTo, getEventType, getInformativeName, getListener, getPriority, getSeqid, handleException, run, setListener
protected HTableDescriptor hTableDescriptor
public DeleteTableHandler(TableName tableName, Server server, MasterServices masterServices)
protected void prepareWithTableLock() throws IOException
TableEventHandler
prepareWithTableLock
in class TableEventHandler
IOException
protected void waitRegionInTransition(List<HRegionInfo> regions) throws IOException, CoordinatedStateException
IOException
CoordinatedStateException
protected void handleTableOperation(List<HRegionInfo> regions) throws IOException, CoordinatedStateException
handleTableOperation
in class TableEventHandler
IOException
CoordinatedStateException
protected void removeTableData(List<HRegionInfo> regions) throws IOException, CoordinatedStateException
IOException
CoordinatedStateException
protected void releaseTableLock()
releaseTableLock
in class TableEventHandler
public String toString()
toString
in class EventHandler
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.