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

Loading...
Searching...
No Matches
FSLockFactory.h
Go to the documentation of this file.
1
2// 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 FSLOCKFACTORY_H
8#define FSLOCKFACTORY_H
9
10#include "LockFactory.h"
11
12 namespace Lucene {
13
15 class LPPAPI FSLockFactory : public LockFactory {
16 protected:
17 FSLockFactory();
18
19 public:
20 virtual ~FSLockFactory();
21
22 LUCENE_CLASS(FSLockFactory);
23
24 protected:
26 String lockDir;
27
28 public:
33 void setLockDir(const String& lockDir);
34
36 String getLockDir();
37};
38
39}
40
41#endif
LockFactory.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Lucene::FSLockFactory
Base class for file system based locking implementation.
Definition FSLockFactory.h:15
Lucene::FSLockFactory::FSLockFactory
FSLockFactory()
Lucene::FSLockFactory::lockDir
String lockDir
Directory for the lock files.
Definition FSLockFactory.h:26
Lucene::FSLockFactory::setLockDir
void setLockDir(const String &lockDir)
Set the lock directory. This method can be only called once to initialize the lock directory....
Lucene::FSLockFactory::getLockDir
String getLockDir()
Retrieve the lock directory.
Lucene::FSLockFactory::~FSLockFactory
virtual ~FSLockFactory()
Lucene::LockFactory
Base class for Locking implementation. Directory uses instances of this class to implement locking....
Definition LockFactory.h:23
Lucene
Definition AbstractAllTermDocs.h:12

clucene.sourceforge.net