cat.hist
Class ClientSocket
java.lang.Object
cat.hist.ClientSocket
- All Implemented Interfaces:
- java.lang.Runnable
- public class ClientSocket
- extends java.lang.Object
- implements java.lang.Runnable
This class is used by the generic server. It opens a socket connection
to the SQL database, and formats querries and inserts into SQL form.
Field Summary |
private java.net.Socket |
client
|
private GenericServer |
hs
|
private java.io.BufferedReader |
in
|
private java.lang.String |
input
|
private java.lang.String |
line
|
private java.io.PrintStream |
out
|
private java.util.Properties |
prop
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
client
private java.net.Socket client
line
private java.lang.String line
input
private java.lang.String input
hs
private GenericServer hs
in
private java.io.BufferedReader in
out
private java.io.PrintStream out
prop
private java.util.Properties prop
ClientSocket
ClientSocket(GenericServer hs,
java.net.Socket client)
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
process
public void process()
throws java.lang.Exception
- Throws:
java.lang.Exception
processQuerySensor
public void processQuerySensor()
throws java.sql.SQLException,
java.lang.ClassNotFoundException
- Throws:
java.sql.SQLException
java.lang.ClassNotFoundException
processInsert
public void processInsert()
throws java.sql.SQLException,
java.lang.ClassNotFoundException
- Throws:
java.sql.SQLException
java.lang.ClassNotFoundException
finalClose
public void finalClose()
throws java.io.IOException
- Throws:
java.io.IOException
communicate
public void communicate(java.io.BufferedReader in,
java.io.PrintStream out)
throws java.io.IOException
- Throws:
java.io.IOException
communicate
public void communicate(java.io.ObjectInputStream in,
java.io.ObjectOutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)