@InterfaceAudience.Private public interface TableStateManager
ZKTableStateClientSideReadervoid setTableState(TableName tableName, org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.Table.State state) throws CoordinatedStateException
tableName - table to processstate - new state of this tableCoordinatedStateException - if error happened when trying to set table stateboolean setTableStateIfInStates(TableName tableName, org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.Table.State newState, org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.Table.State... states) throws CoordinatedStateException
tableName - table to processnewState - new state for the tablestates - table should be in one of these states for the operation
to be performedCoordinatedStateException - if error happened while performing operationboolean setTableStateIfNotInStates(TableName tableName, org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.Table.State newState, org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.Table.State... states) throws CoordinatedStateException
tableName - table to processnewState - new state for the tablestates - table should NOT be in one of these states for the operation
to be performedCoordinatedStateException - if error happened while performing operationboolean isTableState(TableName tableName, org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.Table.State... states)
boolean isTableState(TableName tableName, boolean checkSource, org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.Table.State... states)
void setDeletedTable(TableName tableName) throws CoordinatedStateException
tableName - table to be deletedCoordinatedStateException - if error happened while performing operationboolean isTablePresent(TableName tableName)
tableName - table we're checkingSet<TableName> getTablesInStates(org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.Table.State... states) throws InterruptedIOException, CoordinatedStateException
InterruptedIOExceptionCoordinatedStateExceptionvoid checkAndRemoveTableState(TableName tableName, org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.Table.State states, boolean deletePermanentState) throws CoordinatedStateException
tableName - table we're working onstates - if table isn't in any one of these states, operation abortsdeletePermanentState - if true, reset the permanent flagCoordinatedStateException - if error happened in underlying coordination engineCopyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.