Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hsqldb
Class ServerConnection  view ServerConnection download ServerConnection.java

java.lang.Object
  extended byorg.hsqldb.ServerConnection
All Implemented Interfaces:
java.lang.Runnable

class ServerConnection
extends java.lang.Object
implements java.lang.Runnable

All ServerConnection objects are listed in a Vector in mServer and removed when closed.

When a connection is dropped or closed the Server.notify() method is called. Upon notification, tf the DB is shutdown as a result of SHUTDOWN, the server stops all ServerConnection threads. At this point, only the skeletal Server object remains and everything else will be garbage collected. (fredt@users)

Version:
1.7.1

Field Summary
private static int mCurrentThread
           
private  java.io.DataInputStream mInput
           
private  java.io.DataOutputStream mOutput
           
private  Server mServer
           
private  java.net.Socket mSocket
           
private  int mThread
           
private  Session session
           
private  java.lang.String user
           
 
Constructor Summary
(package private) ServerConnection(java.net.Socket socket, Server server)
           
 
Method Summary
(package private)  void close()
           
private  Session init()
          Method declaration
 void run()
          Method declaration
(package private)  void write(byte[] b)
          Method declaration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

user

private java.lang.String user

session

private Session session

mSocket

private java.net.Socket mSocket

mServer

private Server mServer

mInput

private java.io.DataInputStream mInput

mOutput

private java.io.DataOutputStream mOutput

mCurrentThread

private static int mCurrentThread

mThread

private int mThread
Constructor Detail

ServerConnection

ServerConnection(java.net.Socket socket,
                 Server server)
Method Detail

close

void close()

init

private Session init()
Method declaration


run

public void run()
Method declaration

Specified by:
run in interface java.lang.Runnable

write

void write(byte[] b)
     throws java.io.IOException
Method declaration