|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread org.objectweb.cjdbc.controller.core.ControllerServerThread
A ControllerServerThread
listens for C-JDBC driver
connections. It accepts the connection and give them to
ControllerWorkerThreads
.
ControllerWorkerThread
Field Summary | |
protected Controller |
controller
|
protected java.util.ArrayList |
controllerServerThreadPendingQueue
Pending queue of client (driver) socket connections |
protected int |
idleWorkerThreads
Number of idle ControllerWorkerThread . |
private boolean |
isShuttingDown
|
(package private) static Trace |
logger
Logger instance. |
private java.net.ServerSocket |
serverSocket
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
ControllerServerThread(Controller controller)
Creates a new ControllerServerThread that listens on the given port. |
Method Summary | |
int |
getControllerServerThreadPendingQueueSize()
|
int |
getIdleWorkerThreads()
|
boolean |
isShuttingDown()
Returns the isShuttingDown value. |
void |
run()
Accepts connections from drivers, read the virtual database name and returns the connection point. |
void |
shutdown()
Refuse new connection to clients and finish transaction |
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 java.net.ServerSocket serverSocket
private boolean isShuttingDown
protected Controller controller
protected java.util.ArrayList controllerServerThreadPendingQueue
protected int idleWorkerThreads
ControllerWorkerThread
. Access to this
variable must be synchronized using pendingQueue.
static Trace logger
Constructor Detail |
public ControllerServerThread(Controller controller)
controller
- The controller which created this thread.Method Detail |
public void run()
public void shutdown()
public int getControllerServerThreadPendingQueueSize()
public int getIdleWorkerThreads()
public boolean isShuttingDown()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |