@InterfaceAudience.Private public class TableStateManager extends Object
start() is called.| Modifier and Type | Class and Description |
|---|---|
static class |
TableStateManager.TableStateNotFoundException |
| Modifier and Type | Field and Description |
|---|---|
protected MasterServices |
master |
| Constructor and Description |
|---|
TableStateManager(MasterServices master) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deleteZooKeeper(org.apache.hadoop.hbase.TableName tableName)
Deprecated.
Since 2.0.0. To be removed in hbase-3.0.0.
|
protected void |
fixTableState(org.apache.hadoop.hbase.client.TableState tableState)
For subclasses in case they want to do fixup post hbase:meta.
|
Set<org.apache.hadoop.hbase.TableName> |
getTablesInStates(org.apache.hadoop.hbase.client.TableState.State... states)
Return all tables in given states.
|
org.apache.hadoop.hbase.client.TableState |
getTableState(org.apache.hadoop.hbase.TableName tableName) |
boolean |
isTablePresent(org.apache.hadoop.hbase.TableName tableName) |
boolean |
isTableState(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.client.TableState.State... states) |
protected void |
metaStateDeleted(org.apache.hadoop.hbase.TableName tableName) |
protected void |
metaStateUpdated(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.client.TableState.State newState) |
void |
setDeletedTable(org.apache.hadoop.hbase.TableName tableName) |
void |
setTableState(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.client.TableState.State newState)
Set table state to provided.
|
org.apache.hadoop.hbase.client.TableState |
setTableStateIfInStates(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.client.TableState.State newState,
org.apache.hadoop.hbase.client.TableState.State... states)
Set table state to provided but only if table in specified states Caller should lock table on
write.
|
boolean |
setTableStateIfNotInStates(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.client.TableState.State newState,
org.apache.hadoop.hbase.client.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(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.client.TableState.State newState)
throws IOException
tableName - table to change state fornewState - new stateIOExceptionpublic org.apache.hadoop.hbase.client.TableState setTableStateIfInStates(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.client.TableState.State newState,
org.apache.hadoop.hbase.client.TableState.State... states)
throws IOException
tableName - table to change state fornewState - new statestates - states to check againstIOExceptionpublic boolean setTableStateIfNotInStates(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.client.TableState.State newState,
org.apache.hadoop.hbase.client.TableState.State... states)
throws IOException
tableName - table to change state fornewState - new statestates - states to check againstIOExceptionpublic boolean isTableState(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.client.TableState.State... states)
public void setDeletedTable(org.apache.hadoop.hbase.TableName tableName)
throws IOException
IOExceptionpublic boolean isTablePresent(org.apache.hadoop.hbase.TableName tableName)
throws IOException
IOExceptionpublic Set<org.apache.hadoop.hbase.TableName> getTablesInStates(org.apache.hadoop.hbase.client.TableState.State... states) throws IOException
states - filter by statesIOException@NonNull
public org.apache.hadoop.hbase.client.TableState getTableState(org.apache.hadoop.hbase.TableName tableName)
throws IOException
IOExceptionprotected void metaStateUpdated(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.client.TableState.State newState)
throws IOException
IOExceptionprotected void metaStateDeleted(org.apache.hadoop.hbase.TableName tableName)
throws IOException
IOExceptionpublic void start()
throws IOException
IOExceptionprotected void fixTableState(org.apache.hadoop.hbase.client.TableState tableState)
throws IOException
IOException@Deprecated protected void deleteZooKeeper(org.apache.hadoop.hbase.TableName tableName)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.