|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.master.TableLockManager
org.apache.hadoop.hbase.master.TableLockManager.NullTableLockManager
@InterfaceAudience.Private public static class TableLockManager.NullTableLockManager
A null implementation
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.hadoop.hbase.master.TableLockManager |
|---|
TableLockManager.NullTableLockManager, TableLockManager.TableLock |
| Field Summary |
|---|
| Fields inherited from class org.apache.hadoop.hbase.master.TableLockManager |
|---|
DEFAULT_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 Summary | |
|---|---|
TableLockManager.NullTableLockManager()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.apache.hadoop.hbase.master.TableLockManager |
|---|
createTableLockManager, fromBytes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableLockManager.NullTableLockManager()
| Method Detail |
|---|
public TableLockManager.TableLock writeLock(TableName tableName,
String purpose)
TableLockManager
writeLock in class TableLockManagertableName - Table to lockpurpose - Human readable reason for locking the table
public TableLockManager.TableLock readLock(TableName tableName,
String purpose)
TableLockManager
readLock in class TableLockManagertableName - Table to lockpurpose - Human readable reason for locking the table
public void reapAllExpiredLocks()
throws IOException
TableLockManager
reapAllExpiredLocks in class TableLockManagerIOException - If there is an unrecoverable error
public void reapWriteLocks()
throws IOException
TableLockManager
reapWriteLocks in class TableLockManagerIOException - If there is an unrecoverable error
public void tableDeleted(TableName tableName)
throws IOException
TableLockManager
tableDeleted in class TableLockManagertableName - name of the table
IOException - If there is an unrecoverable error releasing the lock
public void visitAllLocks(InterProcessLock.MetadataHandler handler)
throws IOException
TableLockManager
visitAllLocks in class TableLockManagerhandler - the metadata handler to call
IOException - If there is an unrecoverable error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||