public class FullTextThread extends ExecutionThread
FullTextThread
is properly
initialized calling ExecutionThread.run()
repeatedly and from multiple
threads
should be safe.
For more control, use the EventLogLoader.more()
method to test how
often calls to ExecutionThread.run()
should be made. See Main
for examples.
By default, the indexing will take place as "root".Modifier and Type | Field and Description |
---|---|
protected FullTextBridge |
bridge |
protected FullTextIndexer |
indexer |
protected boolean |
waitForLock |
executor, manager, principal, work
Constructor and Description |
---|
FullTextThread(SessionManager manager,
Executor executor,
FullTextIndexer indexer,
FullTextBridge bridge)
Uses default
Principal for indexing |
FullTextThread(SessionManager manager,
Executor executor,
FullTextIndexer indexer,
FullTextBridge bridge,
boolean waitForLock)
Uses default
Principal for indexing |
FullTextThread(SessionManager manager,
Executor executor,
FullTextIndexer indexer,
FullTextBridge bridge,
Principal principal)
Main constructor.
|
FullTextThread(SessionManager manager,
Executor executor,
FullTextIndexer indexer,
FullTextBridge bridge,
Principal principal,
boolean waitForLock)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
doRun()
Passes the
FullTextIndexer instance to
Executor.Work.doWork(Session, ServiceFactory)
between calls to DetailsFieldBridge.lock() and
DetailsFieldBridge.unlock() in order to guarantee that no other
FieldBridge can edit the property. |
void |
start()
Called by Spring on creation.
|
void |
stop()
Called by Spring on destruction.
|
getPrincipal, run, sessionInit
protected final boolean waitForLock
protected final FullTextIndexer indexer
protected final FullTextBridge bridge
public FullTextThread(SessionManager manager, Executor executor, FullTextIndexer indexer, FullTextBridge bridge)
Principal
for indexingpublic FullTextThread(SessionManager manager, Executor executor, FullTextIndexer indexer, FullTextBridge bridge, boolean waitForLock)
Principal
for indexingpublic FullTextThread(SessionManager manager, Executor executor, FullTextIndexer indexer, FullTextBridge bridge, Principal principal)
public FullTextThread(SessionManager manager, Executor executor, FullTextIndexer indexer, FullTextBridge bridge, Principal principal, boolean waitForLock)
public void start()
public void doRun()
FullTextIndexer
instance to
Executor.Work.doWork(Session, ServiceFactory)
between calls to DetailsFieldBridge.lock()
and
DetailsFieldBridge.unlock()
in order to guarantee that no other
FieldBridge
can edit the property.
Therefore, only one indexer using this idiom can run at a time.doRun
in class ExecutionThread
public void stop()
DetailsFieldBridge
then marks this thread as inactive.
Version: 5.2.8-ice35-b57
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.