NativeFSLockFactory
, SimpleFSLockFactory
public abstract class FSLockFactory extends LockFactory
Modifier and Type | Field | Description |
---|---|---|
protected File |
lockDir |
Directory for the lock files.
|
lockPrefix
Constructor | Description |
---|---|
FSLockFactory() |
Modifier and Type | Method | Description |
---|---|---|
File |
getLockDir() |
Retrieve the lock directory.
|
protected void |
setLockDir(File lockDir) |
Set the lock directory.
|
clearLock, getLockPrefix, makeLock, setLockPrefix
protected File lockDir
protected final void setLockDir(File lockDir)
FSDirectory
to set the lock directory to itself.
Subclasses can also use this method to set the directory
in the constructor.public File getLockDir()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.