DBAbstract API Documentation

ro.raducora.connection.server.tcp
Class ServerTCPAdapter

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--ro.raducora.connection.server.tcp.ServerTCPAdapter
All Implemented Interfaces:
java.lang.Runnable, Server

public class ServerTCPAdapter
extends java.lang.Thread
implements Server

Author:
Radu Coravu
A Server instance representing a DBAbstract Server

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ServerTCPAdapter(ServerProps serverProps, AdapterManager adapterManager, int PORT, StreamEncryptionKey inkey, StreamEncryptionKey outkey)
          Intitialize Server Parameters
 
Method Summary
 void reload()
          Reload properties
 void run()
          Run the server thread
 void startServer()
          Start the Server.
 void stopServer()
          Stop the Server
 
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
 

Constructor Detail

ServerTCPAdapter

public ServerTCPAdapter(ServerProps serverProps,
                        AdapterManager adapterManager,
                        int PORT,
                        StreamEncryptionKey inkey,
                        StreamEncryptionKey outkey)
                 throws java.io.IOException
Intitialize Server Parameters

Parameters:
PORT - the PORT to bind to
inkey - key for decripting the input
outkey - key for encripting the output
Throws:
java.io.IOException
Method Detail

run

public void run()
Run the server thread

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

stopServer

public void stopServer()
Stop the Server

Specified by:
stopServer in interface Server

startServer

public void startServer()
Start the Server.

Specified by:
startServer in interface Server

reload

public void reload()
            throws java.lang.Exception
Reload properties

Specified by:
reload in interface Server
Throws:
java.lang.Exception

DBAbstract API Documentation

© Copyright Radu Coravu 2002 - 2004.