org.xmlhammer
Class ModuleThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.xmlhammer.ModuleThread
All Implemented Interfaces:
java.lang.Runnable

public class ModuleThread
extends java.lang.Thread

Put comment...

Version:
$Revision$, $Date$
Author:
Edwin Dankert

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
ModuleThread(org.apache.log4j.Logger logger, StatusModel status, ResultModel result, Input input, Module module)
          Constructs a module runner.
 
Method Summary
 void addListener(ModuleThreadListener listener)
          Adds a thread listener to the module.
 void cancel()
           
protected  void fireThreadFinished()
          Notifies the listeners about the deletion of this document.
protected  void fireThreadStarted()
           
 void removeListener(ModuleThreadListener listener)
          Removes a thread listener from the module.
 void run()
           
 
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

ModuleThread

public ModuleThread(org.apache.log4j.Logger logger,
                    StatusModel status,
                    ResultModel result,
                    Input input,
                    Module module)
Constructs a module runner.

Parameters:
logger -
status -
result -
input -
module -
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

cancel

public void cancel()

fireThreadFinished

protected void fireThreadFinished()
Notifies the listeners about the deletion of this document.


fireThreadStarted

protected void fireThreadStarted()

addListener

public void addListener(ModuleThreadListener listener)
Adds a thread listener to the module.


removeListener

public void removeListener(ModuleThreadListener listener)
Removes a thread listener from the module.



Copyright 2005-2005-2008 Edwin Dankert. All Rights Reserved.