jvm.server
Class ServerMain

java.lang.Object
  |
  +--jvm.server.ServerMain

public class ServerMain
extends java.lang.Object

The main server side class that starts all server threads and also holds some of the global information available.

For more details please take a look at the manual. A simple startup example line would be java ServerMain server.res.

Written: Radu Sion
Version: 0.30a
Source: ServerMain.java

Visit Smart Software 

See Also:
ConnectServerThread

TD ALIGN="right" VALIGN="top" WIDTH="1%"> static SimpleProperties
Field Summary
static AuthHandler authHandler
          This holds a static reference to the used auth handler object.
static java.lang.Class authHandlerClass
          this is the auth handler's class.
static java.lang.String authHandlerName
          this is the auth handler's class name.
static java.lang.String clientAuthHandlerName
          the required compatible client auth handler full qualified class name
static java.lang.String clientAuthHandlerVersion
          the minimum required version for the client auth handler.
static CommunicationHandler communicationHandler
          The communication handler object used inside.
static java.lang.Class communicationHandlerClass
          The communication handler class used inside the communication server thread.
static java.lang.String communicationHandlerName
          The name of the communication handler class used inside.
static CommunicationServerThread communicationThread
          This holds a static reference to the used CommunicationServerThread.
static ConnectServerThread connectionThread
          This holds a static reference to the used connect server thread.
passwordsHash
          This holds a static reference to the used password file hash.
static SimpleProperties resourceHash
          This holds a static reference to the used global resource hash.
static ServerStreamProtocol streamProtocol
          This holds a static reference to the used server stream protocol.
static Watchdog systemWatchdog
          this holds a static reference to the used system watchdog object.
static java.lang.Class systemWatchdogClass
          this holds a static reference to the used system watchdog class.
static java.lang.String systemWatchdogName
          this holds a static reference to the used system watchdog class name.
static Watchdog userWatchdog
          this holds a static reference to the used user watchdog object.
static java.lang.Class userWatchdogClass
          this holds a static reference to the used user watchdog class.
static java.lang.String userWatchdogName
          this holds a static reference to the used user watchdog class name.
 
Constructor Summary
ServerMain(SimpleProperties rh)
          Fires up all the threads that compose the system.
 
Method Summary
static void main(java.lang.String[] argv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

streamProtocol

public static ServerStreamProtocol streamProtocol
This holds a static reference to the used server stream protocol.

connectionThread

public static ConnectServerThread connectionThread
This holds a static reference to the used connect server thread.

resourceHash

public static SimpleProperties resourceHash
This holds a static reference to the used global resource hash.

passwordsHash

public static SimpleProperties passwordsHash
This holds a static reference to the used password file hash.

communicationThread

public static CommunicationServerThread communicationThread
This holds a static reference to the used CommunicationServerThread.

systemWatchdogClass

public static java.lang.Class systemWatchdogClass
this holds a static reference to the used system watchdog class.

systemWatchdogName

public static java.lang.String systemWatchdogName
this holds a static reference to the used system watchdog class name.

systemWatchdog

public static Watchdog systemWatchdog
this holds a static reference to the used system watchdog object.

userWatchdogClass

public static java.lang.Class userWatchdogClass
this holds a static reference to the used user watchdog class.

userWatchdogName

public static java.lang.String rWatchdogName
this holds a static reference to the used user watchdog class name.

userWatchdog

public static Watchdog userWatchdog
this holds a static reference to the used user watchdog object.

authHandler

public static AuthHandler authHandler
This holds a static reference to the used auth handler object.

authHandlerClass

public static java.lang.Class authHandlerClass
this is the auth handler's class.

authHandlerName

public static java.lang.String authHandlerName
this is the auth handler's class name.

clientAuthHandlerName

public static java.lang.String clientAuthHandlerName
the required compatible client auth handler full qualified class name

clientAuthHandlerVersion

public static java.lang.String clientAuthHandlerVersion
the minimum required version for the client auth handler.

communicationHandlerClass

public static java.lang.Class communicationHandlerClass
The communication handler class used inside the communication server thread.

communicationHandlerName

public static java.lang.String communicationHandlerName
The name of the communication handler class used inside.

communicationHandler

public static CommunicationHandler communicationHandler
The communication handler object used inside.
Constructor Detail

ServerMain

public ServerMain(SimpleProperties rh)
           throws java.lang.Exception
Fires up all the threads that compose the system.
Parameters:
rh - Resource Hash to use
Method Detail

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception