protected class ConcurrentMergeScheduler.MergeThread extends Thread
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ConcurrentMergeScheduler.MergeThread(IndexWriter writer,
MergePolicy.OneMerge startMerge)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
MergePolicy.OneMerge |
getCurrentMerge()
Return the current merge, or null if this
MergeThread 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.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public ConcurrentMergeScheduler.MergeThread(IndexWriter writer, MergePolicy.OneMerge startMerge)
public void setRunningMerge(MergePolicy.OneMerge merge)
public MergePolicy.OneMerge getRunningMerge()
public MergePolicy.OneMerge getCurrentMerge()
MergeThread
is done.public void setThreadPriority(int pri)
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.