dict.common
Class DictIndexBaseThread

java.lang.Object
  extended by java.lang.Thread
      extended by dict.common.DictIndexBaseThread
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
DictIndexLoadThread, DictIndexSearchThread, DictIndexSKeysThread

public abstract class DictIndexBaseThread
extends java.lang.Thread

Base class for various background threads handling dictionary index.

Version:
$Revision: 21 $
Author:
Daniel Stoinski

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  DictIndex m_index
          Dictionary index to handle.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DictIndexBaseThread(DictIndex aDictIndex)
          Initializes the class for the given dictionary index.
 
Method Summary
 void doStop()
          Stops the background job.
 
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, run, 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
 

Field Detail

m_index

protected DictIndex m_index
Dictionary index to handle. Dictionary index to load or query, depending on the final implementation.

Constructor Detail

DictIndexBaseThread

public DictIndexBaseThread(DictIndex aDictIndex)
Initializes the class for the given dictionary index.

Parameters:
aDictIndex - the dictionary index to handle: load or query depending on the final implementation.
Method Detail

doStop

public final void doStop()
Stops the background job.