public boolean isTablePresent(TableName tableName) throws IOException {
    ReadWriteLock lock = tnLock.getLock(tableName);
    lock.readLock().lock();
    try {
      return readMetaState(tableName) != null;
    } finally {
      lock.readLock().unlock();
    }
  }
Set table state to provided. Caller should lock table on write.
@param tableName table to change state for
@param newState  new state
hbase-server/src/main/java/org/apache/hadoop/hbase/master/TableStateManager.java