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 theFullTextThread
is properly initialized callingExecutionThread.run()
repeatedly and from multiplethreads
should be safe. For more control, use theEventLogLoader.more()
method to test how often calls toExecutionThread.run()
should be made. SeeMain
for examples. By default, the indexing will take place as "root".- Since:
- 3.0-Beta3
-
-
Field Summary
Fields Modifier and Type Field Description protected FullTextBridge
bridge
Deprecated.protected FullTextIndexer
indexer
Deprecated.protected boolean
waitForLock
Deprecated.-
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 defaultPrincipal
for indexingFullTextThread(SessionManager manager, Executor executor, FullTextIndexer indexer, FullTextBridge bridge, boolean waitForLock)
Deprecated.Uses defaultPrincipal
for 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 void
doRun()
Deprecated.Passes theFullTextIndexer
instance toExecutor.Work.doWork(Session, ServiceFactory)
between calls toDetailsFieldBridge.lock()
andDetailsFieldBridge.unlock()
in order to guarantee that no otherFieldBridge
can edit the property.void
start()
Deprecated.Called by Spring on creation.void
stop()
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 defaultPrincipal
for indexing
-
FullTextThread
public FullTextThread(SessionManager manager, Executor executor, FullTextIndexer indexer, FullTextBridge bridge, boolean waitForLock)
Deprecated.Uses defaultPrincipal
for 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 theFullTextIndexer
instance toExecutor.Work.doWork(Session, ServiceFactory)
between calls toDetailsFieldBridge.lock()
andDetailsFieldBridge.unlock()
in order to guarantee that no otherFieldBridge
can edit the property. Therefore, only one indexer using this idiom can run at a time.- Specified by:
doRun
in classExecutionThread
-
stop
public void stop()
Deprecated.Called by Spring on destruction. Waits for the global lock onDetailsFieldBridge
then marks this thread as inactive.
-
-