@InterfaceAudience.Private public static class TableLockManager.NullTableLockManager extends TableLockManager
TableLockManager.NullTableLockManager, TableLockManager.TableLockDEFAULT_TABLE_LOCK_EXPIRE_TIMEOUT_MS, DEFAULT_TABLE_READ_LOCK_TIMEOUT_MS, DEFAULT_TABLE_WRITE_LOCK_TIMEOUT_MS, TABLE_LOCK_ENABLE, TABLE_LOCK_EXPIRE_TIMEOUT, TABLE_READ_LOCK_TIMEOUT_MS, TABLE_WRITE_LOCK_TIMEOUT_MS| Constructor and Description |
|---|
NullTableLockManager() |
| Modifier and Type | Method and Description |
|---|---|
TableLockManager.TableLock |
readLock(TableName tableName,
java.lang.String purpose)
Returns a TableLock for locking the table for shared access among read-lock holders
|
void |
reapAllExpiredLocks()
Force releases all table locks(read and write) that have been held longer than
"hbase.table.lock.expire.ms".
|
void |
reapWriteLocks()
Force releases table write locks and lock attempts even if this thread does
not own the lock.
|
void |
tableDeleted(TableName tableName)
Called after a table has been deleted, and after the table lock is released.
|
void |
visitAllLocks(InterProcessLock.MetadataHandler handler)
Visits all table locks(read and write), and lock attempts with the given callback
MetadataHandler.
|
TableLockManager.TableLock |
writeLock(TableName tableName,
java.lang.String purpose)
Returns a TableLock for locking the table for exclusive access
|
createTableLockManager, fromBytespublic TableLockManager.TableLock writeLock(TableName tableName, java.lang.String purpose)
TableLockManagerwriteLock in class TableLockManagertableName - Table to lockpurpose - Human readable reason for locking the tablepublic TableLockManager.TableLock readLock(TableName tableName, java.lang.String purpose)
TableLockManagerreadLock in class TableLockManagertableName - Table to lockpurpose - Human readable reason for locking the tablepublic void reapAllExpiredLocks()
throws java.io.IOException
TableLockManagerreapAllExpiredLocks in class TableLockManagerjava.io.IOException - If there is an unrecoverable errorpublic void reapWriteLocks()
throws java.io.IOException
TableLockManagerreapWriteLocks in class TableLockManagerjava.io.IOException - If there is an unrecoverable errorpublic void tableDeleted(TableName tableName) throws java.io.IOException
TableLockManagertableDeleted in class TableLockManagertableName - name of the tablejava.io.IOException - If there is an unrecoverable error releasing the lockpublic void visitAllLocks(InterProcessLock.MetadataHandler handler) throws java.io.IOException
TableLockManagervisitAllLocks in class TableLockManagerhandler - the metadata handler to calljava.io.IOException - If there is an unrecoverable error