com.altair.hwm.database.dbserver
Class DBServerMain

java.lang.Object
  extended by com.altair.hwm.database.dbserver.DBServerMain

public class DBServerMain
extends java.lang.Object

Title: DBServerMain

Description: The main class for the data model server

Company: Altair Engineering, Inc.


Constructor Summary
DBServerMain(java.lang.String[] arrstrArgs)
          Constructor
 
Method Summary
 void ExtractArgs(java.lang.String[] arrstrArgs)
          Parses the cmd line args to extract the port number and if the args is incorrect - prints out the usage
static void main(java.lang.String[] arrstrArgs)
          The main method for the server
 void PrintUsage()
          Prints out the usage
 void StartServer()
          Creates and starts the thread that accepts clients
 void StopServer()
          Creates a socket cxn to a given server with given port # and sends the "stop" signal to end the server
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBServerMain

public DBServerMain(java.lang.String[] arrstrArgs)
Constructor

Parameters:
arrstrArgs - The cmd line args
Method Detail

PrintUsage

public void PrintUsage()
Prints out the usage


ExtractArgs

public void ExtractArgs(java.lang.String[] arrstrArgs)
                 throws java.lang.Exception
Parses the cmd line args to extract the port number and if the args is incorrect - prints out the usage

Parameters:
arrstrArgs - The cmd line args
Throws:
java.lang.Exception

StartServer

public void StartServer()
Creates and starts the thread that accepts clients

Throws:
java.io.IOException

StopServer

public void StopServer()
Creates a socket cxn to a given server with given port # and sends the "stop" signal to end the server


main

public static void main(java.lang.String[] arrstrArgs)
The main method for the server