|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.services.util.ExecutionThread
ome.services.fulltext.FullTextThread
public class FullTextThread
Library entry-point for indexing. Once the 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".
Field Summary | |
---|---|
protected FullTextBridge |
bridge
|
protected FullTextIndexer |
indexer
|
protected boolean |
waitForLock
|
Fields inherited from class ome.services.util.ExecutionThread |
---|
executor, manager, principal, work |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
void |
doRun()
Passes the FullTextIndexer instance to
Executor.Work#doWork(org.springframework.transaction.TransactionStatus, org.hibernate.Session, ome.system.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. |
Methods inherited from class ome.services.util.ExecutionThread |
---|
getPrincipal, run, sessionInit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final boolean waitForLock
protected final FullTextIndexer indexer
protected final FullTextBridge bridge
Constructor Detail |
---|
public FullTextThread(SessionManager manager, Executor executor, FullTextIndexer indexer, FullTextBridge bridge)
Principal
for indexing
public FullTextThread(SessionManager manager, Executor executor, FullTextIndexer indexer, FullTextBridge bridge, boolean waitForLock)
Principal
for indexing
public 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)
Method Detail |
---|
public void start()
public void doRun()
FullTextIndexer
instance to
Executor.Work#doWork(org.springframework.transaction.TransactionStatus, org.hibernate.Session, ome.system.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.