|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.duke.cs.banjo.application.BanjoThreadHandler
Used for searching in a multi-threaded scenario. (Code is based on the old Banjo class, although this class is now used within the wrapper class that handles the actual multi-threading)
Change History:
Created on Aug 10, 2007
Field Summary | |
protected int |
maxThreads
|
protected PostProcessor |
postProcessor
|
protected PreProcessor |
preProcessor
|
protected SearcherI |
searcher
|
protected Settings |
settings
|
protected java.lang.String[] |
storedArgs
|
protected int |
threadIndex
|
Constructor Summary | |
BanjoThreadHandler(java.lang.String[] _args,
int _threadIndex,
Settings _settings)
Simple access point to the Banjo application. |
Method Summary | |
Settings |
getSettings()
|
protected void |
handleFeedbackForProblems()
Generates feedback in case the main search loop encountered a problem. |
void |
runSearch()
Sets up, then initiates the execution of the Banjo application. |
private boolean |
validateRequiredData()
Validates the settings values required for getting the main Banjo class started. |
java.lang.Object |
validChoices()
Provides the valid choices for this class, here: the available searchers. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected volatile Settings settings
protected volatile java.lang.String[] storedArgs
protected volatile int threadIndex
protected volatile SearcherI searcher
protected volatile PreProcessor preProcessor
protected volatile PostProcessor postProcessor
protected int maxThreads
Constructor Detail |
public BanjoThreadHandler(java.lang.String[] _args, int _threadIndex, Settings _settings) throws java.lang.Exception
_args
- The (optional) arguments for running a search.Method Detail |
public void runSearch()
private boolean validateRequiredData() throws java.lang.Exception
java.lang.Exception
public java.lang.Object validChoices()
protected void handleFeedbackForProblems() throws java.lang.Exception
java.lang.Exception
public Settings getSettings()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |