The SimpleFSLockFactory type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| SimpleFSLockFactory()()()() | Create a SimpleFSLockFactory instance, with null (unset)
lock directory. When you pass this factory to a {@link FSDirectory}
subclass, the lock directory is automatically set to the
directory itsself. Be sure to create one instance for each directory
your create!
| |
| SimpleFSLockFactory(DirectoryInfo) | Instantiate using the provided directory (as a File instance). | |
| SimpleFSLockFactory(FileInfo) | Obsolete. Instantiate using the provided directory (as a File instance). | |
| SimpleFSLockFactory(String) | Instantiate using the provided directory name (String). |
Methods
| Name | Description | |
|---|---|---|
| ClearLock | (Overrides LockFactory..::..ClearLock(String).) | |
| Equals | (Inherited from Object.) | |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetLockDir | Retrieve the lock directory. (Inherited from FSLockFactory.) | |
| GetLockPrefix | Get the prefix in use for all locks created in this LockFactory. (Inherited from LockFactory.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MakeLock | (Overrides LockFactory..::..MakeLock(String).) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| SetLockDir | Set the lock directory. This method can be only called
once to initialize the lock directory. It is used by {@link FSDirectory}
to set the lock directory to itsself.
Subclasses can also use this method to set the directory
in the constructor.
(Inherited from FSLockFactory.) | |
| SetLockPrefix | Set the prefix in use for all locks created in this
LockFactory. This is normally called once, when a
Directory gets this LockFactory instance. However, you
can also call this (after this instance is assigned to
a Directory) to override the prefix in use. This
is helpful if you're running Lucene on machines that
have different mount points for the same shared
directory.
(Inherited from LockFactory.) | |
| ToString | (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| lockDir | Directory for the lock files. (Inherited from FSLockFactory.) | |
| lockPrefix | (Inherited from LockFactory.) |