public class DataSetLockManager extends Object implements DataNodeLockManager<AutoCloseDataSetLock>
DataNodeLockManager.LockLevel
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
DataSetLockManager() |
DataSetLockManager(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
addLock(DataNodeLockManager.LockLevel level,
String... resources)
Add a lock to LockManager.
|
Exception |
getLastException() |
void |
hook()
LockManager may need to back hook.
|
void |
lockLeakCheck() |
AutoCloseDataSetLock |
readLock(DataNodeLockManager.LockLevel level,
String... resources)
Acquire readLock and then lock.
|
void |
removeLock(DataNodeLockManager.LockLevel level,
String... resources)
Remove a lock from LockManager.
|
AutoCloseDataSetLock |
writeLock(DataNodeLockManager.LockLevel level,
String... resources)
Acquire writeLock and then lock.
|
public DataSetLockManager(org.apache.hadoop.conf.Configuration conf)
public DataSetLockManager()
public AutoCloseDataSetLock readLock(DataNodeLockManager.LockLevel level, String... resources)
DataNodeLockManager
readLock
in interface DataNodeLockManager<AutoCloseDataSetLock>
public AutoCloseDataSetLock writeLock(DataNodeLockManager.LockLevel level, String... resources)
DataNodeLockManager
writeLock
in interface DataNodeLockManager<AutoCloseDataSetLock>
public void addLock(DataNodeLockManager.LockLevel level, String... resources)
DataNodeLockManager
addLock
in interface DataNodeLockManager<AutoCloseDataSetLock>
public void removeLock(DataNodeLockManager.LockLevel level, String... resources)
DataNodeLockManager
removeLock
in interface DataNodeLockManager<AutoCloseDataSetLock>
public void hook()
DataNodeLockManager
hook
in interface DataNodeLockManager<AutoCloseDataSetLock>
public void lockLeakCheck()
public Exception getLastException()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.