org.objectweb.easybeans.jca.workmanager
Class ResourceWorkThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.objectweb.easybeans.jca.workmanager.ResourceWorkThread
All Implemented Interfaces:
java.lang.Runnable

public class ResourceWorkThread
extends java.lang.Thread

Thread executing works for the work manager.

Author:
Philippe Durieux (JOnAS), Florent Benoit (EasyBeans)

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private static JLog logger
          Logger.
private  ResourceWorkManager workManager
          Resource WorkManager used by this worker thread.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ResourceWorkThread(ResourceWorkManager workManager, int workManagerNumber, int threadNumber)
          Build a thread doing the work.
 
Method Summary
 void run()
          Start the thread work.
 
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
 

Field Detail

logger

private static JLog logger
Logger.


workManager

private ResourceWorkManager workManager
Resource WorkManager used by this worker thread.

Constructor Detail

ResourceWorkThread

ResourceWorkThread(ResourceWorkManager workManager,
                   int workManagerNumber,
                   int threadNumber)
Build a thread doing the work.

Parameters:
workManager - The implementation of WorkManager API.
threadNumber - the thread number for this thread (debug info)
workManagerNumber - identifier of the work manager instance
Method Detail

run

public void run()
Start the thread work.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread