vc.corba.server
Class VCServer

java.lang.Object
  |
  +--vc.corba.server.VCServer
All Implemented Interfaces:
java.lang.Runnable

public class VCServer
extends java.lang.Object
implements java.lang.Runnable

VCServer is the main class of VersionControl server. It initializes the ORB and then the implementation classes of CORBA server. After that it waits for the incomming clients and their requests.


Field Summary
static Logger logger
          Logger object which will be shared by all the server classes
 java.lang.Thread orbThread
          Thread for running the ORB server waiting for the client's requests
static java.lang.String properiesFile
          Property file where the properties specific to VersionClient are set
 
Constructor Summary
VCServer()
          Constructs the VCServer object , by doing the house keeping operations like loading the properties, Initializing logger etc.
 
Method Summary
 void initializeServer()
          Initializes the server side ORB for the application.
 void loadProjectDB()
          Loads the project database by starting the XML parsers.
 void loadVersionDB()
          Loads the version database by starting the XML parsers.
static void main(java.lang.String[] args)
          Starting point for the VersionControl server application
 void run()
          Thread starting method that initializes the ORB and others on a different thread.
 void stopServer()
          Stops the Execution of the VersionControl Server after saving the projects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static Logger logger
Logger object which will be shared by all the server classes

properiesFile

public static java.lang.String properiesFile
Property file where the properties specific to VersionClient are set

orbThread

public java.lang.Thread orbThread
Thread for running the ORB server waiting for the client's requests
Constructor Detail

VCServer

public VCServer()
         throws java.lang.Throwable
Constructs the VCServer object , by doing the house keeping operations like loading the properties, Initializing logger etc.
Method Detail

run

public void run()
Thread starting method that initializes the ORB and others on a different thread.
Specified by:
run in interface java.lang.Runnable

stopServer

public void stopServer()
                throws java.lang.Throwable
Stops the Execution of the VersionControl Server after saving the projects

initializeServer

public void initializeServer()
                      throws java.lang.Throwable
Initializes the server side ORB for the application. Most of the ORB binding information is picked from the properties file passed as the commandline parameters for this application. Runs the ORB so that it waits for the client requests.

loadProjectDB

public void loadProjectDB()
                   throws java.lang.Throwable
Loads the project database by starting the XML parsers. As and when the parsing happens the data wil be populated into the database i.e ProjectDB object.

loadVersionDB

public void loadVersionDB()
                   throws java.lang.Throwable
Loads the version database by starting the XML parsers. As and when the parsing happens the data wil be populated into the database i.e ProjectDB object.

main

public static void main(java.lang.String[] args)
Starting point for the VersionControl server application
Parameters:
args - first string in this array is the properties file name