Class IndexEngineInitialize
- java.lang.Object
-
- org.silverpeas.core.index.indexing.IndexEngineInitialize
-
- All Implemented Interfaces:
Initialization
@Service public class IndexEngineInitialize extends Object implements Initialization
Initializes the indexation engine of Silverpeas.
-
-
Constructor Summary
Constructors Constructor Description IndexEngineInitialize()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init()
Since version 1.3 of Lucene, lock files are stored in the java.io.tmpdir system's property By default on Windows, it's %USER_DIR%\Local Settings\TEMP and /tmp on Unixprotected 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
-
Methods inherited from interface org.silverpeas.core.initialization.Initialization
getPriority, release
-
-
-
-
Method Detail
-
init
public void init()
Since version 1.3 of Lucene, lock files are stored in the java.io.tmpdir system's property By default on Windows, it's %USER_DIR%\Local Settings\TEMP and /tmp on Unix- Specified by:
init
in interfaceInitialization
-
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.
-
-