@InterfaceAudience.Private public static class TableLockManager.NullTableLockManager extends TableLockManager
TableLockManager.NullTableLockManager, TableLockManager.TableLock| 构造器和说明 |
|---|
TableLockManager.NullTableLockManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
TableLockManager.TableLock |
readLock(TableName tableName,
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,
String purpose)
Returns a TableLock for locking the table for exclusive access
|
createTableLockManager, fromBytespublic TableLockManager.TableLock writeLock(TableName tableName, String purpose)
TableLockManagerwriteLock 在类中 TableLockManagertableName - Table to lockpurpose - Human readable reason for locking the tablepublic TableLockManager.TableLock readLock(TableName tableName, String purpose)
TableLockManagerreadLock 在类中 TableLockManagertableName - Table to lockpurpose - Human readable reason for locking the tablepublic void reapAllExpiredLocks()
throws IOException
TableLockManagerreapAllExpiredLocks 在类中 TableLockManagerIOException - If there is an unrecoverable errorpublic void reapWriteLocks()
throws IOException
TableLockManagerreapWriteLocks 在类中 TableLockManagerIOException - If there is an unrecoverable errorpublic void tableDeleted(TableName tableName) throws IOException
TableLockManagertableDeleted 在类中 TableLockManagertableName - name of the tableIOException - If there is an unrecoverable error releasing the lockpublic void visitAllLocks(InterProcessLock.MetadataHandler handler) throws IOException
TableLockManagervisitAllLocks 在类中 TableLockManagerhandler - the metadata handler to callIOException - If there is an unrecoverable errorCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.