Package ome.services.fulltext
Class FullTextThread
- java.lang.Object
-
- ome.services.util.ExecutionThread
-
- ome.services.fulltext.FullTextThread
-
- All Implemented Interfaces:
java.lang.Runnable
@Deprecated public class FullTextThread extends ExecutionThread
Deprecated.Library entry-point for indexing. Once theFullTextThreadis properly initialized callingExecutionThread.run()repeatedly and from multiplethreadsshould be safe. For more control, use theEventLogLoader.more()method to test how often calls toExecutionThread.run()should be made. SeeMainfor examples. By default, the indexing will take place as "root".- Since:
- 3.0-Beta3
-
-
Field Summary
Fields Modifier and Type Field Description protected FullTextBridgebridgeDeprecated.protected FullTextIndexerindexerDeprecated.protected booleanwaitForLockDeprecated.-
Fields inherited from class ome.services.util.ExecutionThread
executor, manager, principal, work
-
-
Constructor Summary
Constructors Constructor Description FullTextThread(SessionManager manager, Executor executor, FullTextIndexer indexer, FullTextBridge bridge)Deprecated.Uses defaultPrincipalfor indexingFullTextThread(SessionManager manager, Executor executor, FullTextIndexer indexer, FullTextBridge bridge, boolean waitForLock)Deprecated.Uses defaultPrincipalfor indexingFullTextThread(SessionManager manager, Executor executor, FullTextIndexer indexer, FullTextBridge bridge, ome.system.Principal principal)Deprecated.Main constructor.FullTextThread(SessionManager manager, Executor executor, FullTextIndexer indexer, FullTextBridge bridge, ome.system.Principal principal, boolean waitForLock)Deprecated.Main constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddoRun()Deprecated.Passes theFullTextIndexerinstance toExecutor.Work.doWork(Session, ServiceFactory)between calls toDetailsFieldBridge.lock()andDetailsFieldBridge.unlock()in order to guarantee that no otherFieldBridgecan edit the property.voidstart()Deprecated.Called by Spring on creation.voidstop()Deprecated.Called by Spring on destruction.-
Methods inherited from class ome.services.util.ExecutionThread
getPrincipal, run, sessionInit
-
-
-
-
Field Detail
-
waitForLock
protected final boolean waitForLock
Deprecated.
-
indexer
protected final FullTextIndexer indexer
Deprecated.
-
bridge
protected final FullTextBridge bridge
Deprecated.
-
-
Constructor Detail
-
FullTextThread
public FullTextThread(SessionManager manager, Executor executor, FullTextIndexer indexer, FullTextBridge bridge)
Deprecated.Uses defaultPrincipalfor indexing
-
FullTextThread
public FullTextThread(SessionManager manager, Executor executor, FullTextIndexer indexer, FullTextBridge bridge, boolean waitForLock)
Deprecated.Uses defaultPrincipalfor indexing
-
FullTextThread
public FullTextThread(SessionManager manager, Executor executor, FullTextIndexer indexer, FullTextBridge bridge, ome.system.Principal principal)
Deprecated.Main constructor. No arguments can be null.
-
FullTextThread
public FullTextThread(SessionManager manager, Executor executor, FullTextIndexer indexer, FullTextBridge bridge, ome.system.Principal principal, boolean waitForLock)
Deprecated.Main constructor. No arguments can be null.
-
-
Method Detail
-
start
public void start()
Deprecated.Called by Spring on creation. Currently a no-op.
-
doRun
public void doRun()
Deprecated.Passes theFullTextIndexerinstance toExecutor.Work.doWork(Session, ServiceFactory)between calls toDetailsFieldBridge.lock()andDetailsFieldBridge.unlock()in order to guarantee that no otherFieldBridgecan edit the property. Therefore, only one indexer using this idiom can run at a time.- Specified by:
doRunin classExecutionThread
-
stop
public void stop()
Deprecated.Called by Spring on destruction. Waits for the global lock onDetailsFieldBridgethen marks this thread as inactive.
-
-