Package org.apache.lucene.index
Class ConcurrentMergeScheduler.MergeThread
- java.lang.Object
-
- java.lang.Thread
-
- org.apache.lucene.index.ConcurrentMergeScheduler.MergeThread
-
- All Implemented Interfaces:
Runnable
- Enclosing class:
- ConcurrentMergeScheduler
protected class ConcurrentMergeScheduler.MergeThread extends Thread
Runs a merge thread, which may run one or more merges in sequence.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description MergeThread(IndexWriter writer, MergePolicy.OneMerge startMerge)
Sole constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MergePolicy.OneMerge
getCurrentMerge()
Return the current merge, or null if thisMergeThread
is done.MergePolicy.OneMerge
getRunningMerge()
Return the currently running merge.void
run()
void
setRunningMerge(MergePolicy.OneMerge merge)
Record the currently running merge.void
setThreadPriority(int pri)
Set the priority of this thread.-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
MergeThread
public MergeThread(IndexWriter writer, MergePolicy.OneMerge startMerge)
Sole constructor.
-
-
Method Detail
-
setRunningMerge
public void setRunningMerge(MergePolicy.OneMerge merge)
Record the currently running merge.
-
getRunningMerge
public MergePolicy.OneMerge getRunningMerge()
Return the currently running merge.
-
getCurrentMerge
public MergePolicy.OneMerge getCurrentMerge()
Return the current merge, or null if thisMergeThread
is done.
-
setThreadPriority
public void setThreadPriority(int pri)
Set the priority of this thread.
-
-