Class FSLockFactory

  extended by
      extended by
Direct Known Subclasses:
NativeFSLockFactory, SimpleFSLockFactory

public abstract class FSLockFactory
extends LockFactory

Base class for file system based locking implementation.

Field Summary
protected  File lockDir
          Directory for the lock files.
Fields inherited from class
Constructor Summary
Method Summary
 File getLockDir()
          Retrieve the lock directory.
protected  void setLockDir(File lockDir)
          Set the lock directory.
Methods inherited from class
clearLock, getLockPrefix, makeLock, setLockPrefix
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


protected File lockDir
Directory for the lock files.

Constructor Detail


public FSLockFactory()
Method Detail


protected final void setLockDir(File lockDir)
Set the lock directory. This method can be only called once to initialize the lock directory. It is used by FSDirectory to set the lock directory to itself. Subclasses can also use this method to set the directory in the constructor.


public File getLockDir()
Retrieve the lock directory.

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.