@InterfaceAudience.Private public class TableStateManager extends Object
start() is called.| Modifier and Type | Field and Description |
|---|---|
protected MasterServices |
master |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deleteZooKeeper(TableName tableName)
Deprecated.
Since 2.0.0. To be removed in hbase-3.0.0.
|
protected void |
fixTableState(TableState tableState)
For subclasses in case they want to do fixup post hbase:meta.
|
TableState |
getTableState(TableName tableName) |
boolean |
isTablePresent(TableName tableName) |
boolean |
isTableState(TableName tableName,
TableState.State... states) |
protected void |
metaStateDeleted(TableName tableName) |
protected void |
metaStateUpdated(TableName tableName,
TableState.State newState) |
void |
setDeletedTable(TableName tableName) |
void |
setTableState(TableName tableName,
TableState.State newState)
Set table state to provided.
|
void |
start() |
protected final MasterServices master
public void setTableState(TableName tableName, TableState.State newState) throws IOException
tableName - table to change state fornewState - new stateIOExceptionpublic boolean isTableState(TableName tableName, TableState.State... states)
public void setDeletedTable(TableName tableName) throws IOException
IOExceptionpublic boolean isTablePresent(TableName tableName) throws IOException
IOException@NonNull public TableState getTableState(TableName tableName) throws IOException
IOExceptionprotected void metaStateUpdated(TableName tableName, TableState.State newState) throws IOException
IOExceptionprotected void metaStateDeleted(TableName tableName) throws IOException
IOExceptionpublic void start()
throws IOException
IOExceptionprotected void fixTableState(TableState tableState) throws IOException
IOException@Deprecated protected void deleteZooKeeper(TableName tableName)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.