Lucene++ - a full-featured, c++ search engine
API Documentation


NativeFSLockFactory.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3 // Distributable under the terms of either the Apache License (Version 2.0)
4 // or the GNU Lesser General Public License.
6 
7 #ifndef NATIVEFSLOCKFACTORY_H
8 #define NATIVEFSLOCKFACTORY_H
9 
10 #include "FSLockFactory.h"
11 
12 namespace Lucene {
13 
16 class LPPAPI NativeFSLockFactory : public FSLockFactory {
17 public:
21  NativeFSLockFactory(const String& lockDirName = EmptyString);
23 
25 
26 public:
29  virtual LockPtr makeLock(const String& lockName);
30 
35  virtual void clearLock(const String& lockName);
36 
37 protected:
43 };
44 
45 }
46 
47 #endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene::NativeFSLockFactory::clearLock
virtual void clearLock(const String &lockName)
Attempt to clear (forcefully unlock and remove) the specified lock. Only call this at a time when you...
Lucene::NativeFSLockFactory::acquireTestLock
void acquireTestLock()
Simple test to verify locking system is "working". On NFS, if it's mis-configured,...
Lucene::LockPtr
boost::shared_ptr< Lock > LockPtr
Definition: LuceneTypes.h:496
Lucene::FSLockFactory
Base class for file system based locking implementation.
Definition: FSLockFactory.h:15
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::NativeFSLockFactory::makeLock
virtual LockPtr makeLock(const String &lockName)
Return a new Lock instance identified by lockName.
Lucene::NativeFSLockFactory::NativeFSLockFactory
NativeFSLockFactory(const String &lockDirName=EmptyString)
Create a NativeFSLockFactory instance, storing lock files into the specified lockDirName.
FSLockFactory.h
Lucene::NativeFSLockFactory::~NativeFSLockFactory
virtual ~NativeFSLockFactory()
Lucene::NativeFSLockFactory
Implements LockFactory using native file lock.
Definition: NativeFSLockFactory.h:16

clucene.sourceforge.net