org.silverpeas.search.indexEngine
Class IndexEngineInitialize
java.lang.Object
org.silverpeas.search.indexEngine.IndexEngineInitialize
- All Implemented Interfaces:
- IInitialize
public class IndexEngineInitialize
- extends Object
- implements IInitialize
Class declaration
- Author:
Method Summary |
boolean |
Initialize()
Since version 1.3 of Lucene, lock files are stored in the java.io.tmpdir system's property By
default on Windows, it's C:\Documents and Settings\neysseri\Local Settings\TEMP and /tmp on
Unix |
protected boolean |
isLockFile(String fileName)
Since version 1.3 of Lucene, lock files have names that start with "lucene-" followed by an MD5
hash of the index directory path. |
protected void |
removeLockFiles(File theFile)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexEngineInitialize
public IndexEngineInitialize()
Initialize
public boolean Initialize()
- Since version 1.3 of Lucene, lock files are stored in the java.io.tmpdir system's property By
default on Windows, it's C:\Documents and Settings\neysseri\Local Settings\TEMP and /tmp on
Unix
- Specified by:
Initialize
in interface IInitialize
- Returns:
- See Also:
removeLockFiles
protected void removeLockFiles(File theFile)
isLockFile
protected boolean isLockFile(String fileName)
- Since version 1.3 of Lucene, lock files have names that start with "lucene-" followed by an MD5
hash of the index directory path. Since version 2.3 of Lucene, lock files are in index dirs and
named "write.lock"
- Parameters:
fileName
- - the file to test
- Returns:
- true if the file is a lucene's lock file, false otherwise.
Copyright © 2016 Silverpeas. All Rights Reserved.