@InterfaceAudience.Private public class TableStateManager extends Object
start() is called.| 限定符和类型 | 类和说明 |
|---|---|
static class |
TableStateManager.TableStateNotFoundException |
| 限定符和类型 | 字段和说明 |
|---|---|
protected MasterServices |
master |
| 构造器和说明 |
|---|
TableStateManager(MasterServices master) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
deleteZooKeeper(TableName tableName)
已过时。
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.
|
Set<TableName> |
getTablesInStates(TableState.State... states)
Return all tables in given states.
|
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.
|
TableState |
setTableStateIfInStates(TableName tableName,
TableState.State newState,
TableState.State... states)
Set table state to provided but only if table in specified states Caller should lock table on
write.
|
boolean |
setTableStateIfNotInStates(TableName tableName,
TableState.State newState,
TableState.State... states)
Set table state to provided but only if table not in specified states Caller should lock table
on write.
|
void |
start() |
protected final MasterServices master
public TableStateManager(MasterServices master)
public void setTableState(TableName tableName, TableState.State newState) throws IOException
tableName - table to change state fornewState - new stateIOExceptionpublic TableState setTableStateIfInStates(TableName tableName, TableState.State newState, TableState.State... states) throws IOException
tableName - table to change state fornewState - new statestates - states to check againstIOExceptionpublic boolean setTableStateIfNotInStates(TableName tableName, TableState.State newState, TableState.State... states) throws IOException
tableName - table to change state fornewState - new statestates - states to check againstIOExceptionpublic boolean isTableState(TableName tableName, TableState.State... states)
public void setDeletedTable(TableName tableName) throws IOException
IOExceptionpublic boolean isTablePresent(TableName tableName) throws IOException
IOExceptionpublic Set<TableName> getTablesInStates(TableState.State... states) throws IOException
states - filter by statesIOException@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–2019 The Apache Software Foundation. All rights reserved.