org.objectweb.cjdbc.controller.core
Class ControllerWorkerThread

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.objectweb.cjdbc.controller.core.ControllerWorkerThread
All Implemented Interfaces:
java.lang.Runnable

public class ControllerWorkerThread
extends java.lang.Thread

The ControllerWorkerThread handles a connection with a C-JDBC driver. It reads a String containing the virtual database name from the driver and sends back the corresponding ConnectionPoint.

Version:
1.0
Author:
Emmanuel Cecchet

Field Summary
private  boolean isKilled
           
(package private) static Trace logger
          Logger instance.
private  ControllerServerThread serverThread
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ControllerWorkerThread(ControllerServerThread serverThread)
          Creates a new ControllerWorkerThread instance.
 
Method Summary
private  void forkVirtualDatabaseWorkerThread(VirtualDatabase vdb, java.lang.String debugmesg)
          Fork a new worker thread.
 void run()
          Gets a connection from the connection queue and process it.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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

serverThread

private ControllerServerThread serverThread

isKilled

private boolean isKilled

logger

static Trace logger
Logger instance.

Constructor Detail

ControllerWorkerThread

public ControllerWorkerThread(ControllerServerThread serverThread)
Creates a new ControllerWorkerThread instance.

Parameters:
serverThread - the ControllerServerThread that created us.
Method Detail

run

public void run()
Gets a connection from the connection queue and process it.


forkVirtualDatabaseWorkerThread

private void forkVirtualDatabaseWorkerThread(VirtualDatabase vdb,
                                             java.lang.String debugmesg)
Fork a new worker thread.

Parameters:
vdb - VirtualDatabase to be served
debugmesg - debug message for the controller log


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.