|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.tranche.commons.DebuggableThread
org.tranche.flatfile.ProjectFindingThread
public class ProjectFindingThread
Loads information about available data, along with corrupted DataBlock files, from disk. This runs when a server starts up.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
ProjectFindingThread(FlatFileTrancheServer ffts)
|
|
| Method Summary | |
|---|---|
boolean |
isStopped()
Returns true if this has been stopped. |
static void |
loadDataBlocks(DataBlockUtil dbu)
Depth-first traversal of data blocks to repair and merge old data blocks. |
static void |
loadDataBlocks(FlatFileTrancheServer ffts)
Depth-first traversal of data blocks to repair, merge old data blocks and gather statistics. |
void |
run()
|
void |
setStopped(boolean stopped)
Set whether this thread is stopped or not. |
| Methods inherited from class org.tranche.commons.DebuggableThread |
|---|
debugErr, debugErr, debugOut, isDebug, setDebug |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProjectFindingThread(FlatFileTrancheServer ffts)
ffts - | Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic boolean isStopped()
Returns true if this has been stopped.
public void setStopped(boolean stopped)
Set whether this thread is stopped or not.
Note that setting this stopped to false after the thread has stopped does nothing.
stopped - public static void loadDataBlocks(DataBlockUtil dbu)
Depth-first traversal of data blocks to repair and merge old data blocks.
This method interface is intended for tests and scripts. Production servers should not invoke this, but will actually run the ProjectFindingThread, which will in turn invoke this method.
dbu - Must not be null (required)public static void loadDataBlocks(FlatFileTrancheServer ffts)
Depth-first traversal of data blocks to repair, merge old data blocks and gather statistics.
This method interface is intended for tests and scripts. Production servers should not invoke this, but will actually run the ProjectFindingThread, which will in turn invoke this method.
ffts - Must not be null (required)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||