|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabaseWorkerThread
The VirtualDatabaseWorkerThread
handles a connection with a
C-JDBC driver.
Field Summary | |
private CommandCompleted |
completed
|
private boolean |
isKilled
true ifthis has been killed. |
private Trace |
logger
Logger instance. |
private static int |
STREAM_GC_LIMIT
How many objects can be sent before resetting the output stream to allow those objects to be garbage collected. |
private VirtualDatabase |
vdb
Virtual database instantiating this thread. |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
VirtualDatabaseWorkerThread(VirtualDatabase vdb)
Creates a new VirtualDatabaseWorkerThread instance. |
Method Summary | |
void |
run()
Gets a connection from the connection queue and process it. |
void |
shutdown()
Shutdown this thread by setting isKilled value to true. |
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 |
private static final int STREAM_GC_LIMIT
private boolean isKilled
true
ifthis has been killed.
private VirtualDatabase vdb
private final CommandCompleted completed
private Trace logger
Constructor Detail |
public VirtualDatabaseWorkerThread(VirtualDatabase vdb)
VirtualDatabaseWorkerThread
instance.
vdb
- the virtual database instantiating this thread.Method Detail |
public void shutdown()
isKilled
value to true. This
gives time to check for needed rollback transactions
public void run()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |