@Deprecated 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
Deprecated.
|
protected FullTextIndexer |
indexer
Deprecated.
|
protected boolean |
waitForLock
Deprecated.
|
executor, manager, principal, work
Constructor and Description |
---|
FullTextThread(SessionManager manager,
Executor executor,
FullTextIndexer indexer,
FullTextBridge bridge)
Deprecated.
Uses default
Principal for indexing |
FullTextThread(SessionManager manager,
Executor executor,
FullTextIndexer indexer,
FullTextBridge bridge,
boolean waitForLock)
Deprecated.
Uses default
Principal for indexing |
FullTextThread(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.
|
Modifier and Type | Method and Description |
---|---|
void |
doRun()
Deprecated.
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()
Deprecated.
Called by Spring on creation.
|
void |
stop()
Deprecated.
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, ome.system.Principal principal)
public FullTextThread(SessionManager manager, Executor executor, FullTextIndexer indexer, FullTextBridge bridge, ome.system.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.