|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.junit.Assert org.apache.lucene.util.LuceneTestCase org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase
public abstract class ThreadedIndexingAndSearchingTestCase
Utility class that spawns multiple indexing and searching threads.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.lucene.util.LuceneTestCase |
---|
LuceneTestCase.Nightly |
Field Summary | |
---|---|
protected AtomicInteger |
addCount
|
protected AtomicInteger |
delCount
|
protected Directory |
dir
|
protected AtomicBoolean |
failed
|
protected AtomicInteger |
packCount
|
protected IndexWriter |
writer
|
Fields inherited from class org.apache.lucene.util.LuceneTestCase |
---|
classRules, random, RANDOM_MULTIPLIER, ruleChain, stores, TEMP_DIR, TEST_CLEAN_THREADS, TEST_DIRECTORY, TEST_ITER, TEST_ITER_MIN, TEST_LINE_DOCS_FILE, TEST_LOCALE, TEST_NIGHTLY, TEST_SEED, TEST_TIMEZONE, TEST_VERSION_CURRENT, testsFailed, VERBOSE |
Constructor Summary | |
---|---|
ThreadedIndexingAndSearchingTestCase()
|
Method Summary | |
---|---|
protected void |
addDocument(Term id,
Document doc)
|
protected void |
addDocuments(Term id,
Collection<Document> docs)
|
protected void |
deleteDocuments(Term term)
|
protected void |
doAfterIndexingThreadDone()
|
protected void |
doAfterWriter(ExecutorService es)
|
protected void |
doClose()
|
protected abstract void |
doSearching(ExecutorService es,
long stopTime)
|
protected abstract IndexSearcher |
getCurrentSearcher()
|
protected Directory |
getDirectory(Directory in)
|
protected abstract IndexSearcher |
getFinalSearcher()
|
protected void |
releaseSearcher(IndexSearcher s)
|
protected void |
runSearchThreads(long stopTimeMS)
|
void |
runTest(String testName)
|
protected void |
smokeTestSearcher(IndexSearcher s)
|
protected void |
updateDocument(Term term,
Document doc)
|
protected void |
updateDocuments(Term id,
Collection<Document> docs)
|
Methods inherited from class org.junit.Assert |
---|
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final AtomicBoolean failed
protected final AtomicInteger addCount
protected final AtomicInteger delCount
protected final AtomicInteger packCount
protected Directory dir
protected IndexWriter writer
Constructor Detail |
---|
public ThreadedIndexingAndSearchingTestCase()
Method Detail |
---|
protected abstract IndexSearcher getCurrentSearcher() throws Exception
Exception
protected abstract IndexSearcher getFinalSearcher() throws Exception
Exception
protected void releaseSearcher(IndexSearcher s) throws Exception
Exception
protected abstract void doSearching(ExecutorService es, long stopTime) throws Exception
Exception
protected Directory getDirectory(Directory in)
protected void updateDocuments(Term id, Collection<Document> docs) throws Exception
Exception
protected void addDocuments(Term id, Collection<Document> docs) throws Exception
Exception
protected void addDocument(Term id, Document doc) throws Exception
Exception
protected void updateDocument(Term term, Document doc) throws Exception
Exception
protected void deleteDocuments(Term term) throws Exception
Exception
protected void doAfterIndexingThreadDone()
protected void runSearchThreads(long stopTimeMS) throws Exception
Exception
protected void doAfterWriter(ExecutorService es) throws Exception
Exception
protected void doClose() throws Exception
Exception
public void runTest(String testName) throws Exception
Exception
protected void smokeTestSearcher(IndexSearcher s) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |