com.altair.hwm.database.dbserver
Class DBServiceClient

java.lang.Object
  extended by java.lang.Thread
      extended by com.altair.hwm.database.dbserver.DBServiceClient
All Implemented Interfaces:
java.lang.Runnable

public class DBServiceClient
extends java.lang.Thread

Title: DBServiceClient

Description: This will handle the requests from client

* Company: Altair Engineering, Inc.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DBServiceClient(java.net.Socket sock)
          Constructor
 
Method Summary
 void Exit()
          Exits the thread.
 void run()
          Runs the thread
 boolean StartService()
          Creates the streams required and starts the thread
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBServiceClient

public DBServiceClient(java.net.Socket sock)
Constructor

Parameters:
sock - The socket on which client requests will arrive
Method Detail

StartService

public boolean StartService()
Creates the streams required and starts the thread

Returns:
boolea - If true, it means the service has started else it means this server should shutdown

run

public void run()
Runs the thread

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

Exit

public void Exit()
Exits the thread.