Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.openmosix.daemon
Class OpenMosixInfoServer  view OpenMosixInfoServer download OpenMosixInfoServer.java

java.lang.Object
  extended byorg.openmosix.daemon.OpenMosixInfoServer

public class OpenMosixInfoServer
extends java.lang.Object

Contains the main code: creates connections (instances of ConnHandler) with the clients. This class is able to manage several connections at the same time.

Version:
$Id: OpenMosixInfoServer.java,v 1.9 2003/01/27 15:43:39 rejected Exp $

Field Summary
static java.lang.String BUILD
          software release info: build number
private static boolean daemonMode
          are we in daemon mode?
private static int debugMode
          number of nodes to simulate in debug mode
static int DEFAULT_SERVER_PORT
          the default server port: 7977 (in ASCII Table char 79 is 'O' and char 77 is 'M')
static int DEFAULT_SOCKET_TIMEOUT
          the default socket timeout in milliseconds: 60000 (60 seconds)
static int EXIT_FAILURE
          standard exit code for execution error
static int EXIT_SUCCESS
          standard exit code for succesful execution
static java.lang.String HPC_DIR
          if this dir doesn't exist, we are not on an openMosix node!
static java.lang.String HPC_NODES_DIR
          this directory should hold a further dir for each node in the cluster
private static Logger logger
          class-wide logger instance
static java.lang.String MAJOR
          software release info: major number
static java.lang.String MINOR
          software release info: minor number
static java.lang.String RELEASE
          software release info: release info
private static boolean returnFloatValues
          Should we return float values?
private static int serverPort
          the port the server is listening on
private static int socketTimeout
          default socket timeout, in milliseconds
 
Constructor Summary
OpenMosixInfoServer()
           
 
Method Summary
static void checkCommandLineValues(java.lang.String[] argv)
          Checks if command line options (entered by the user) are valid program options.
static boolean getDaemonMode()
          Asks whether we are in daemon mode
static int getDebugMode()
          Returns the number of nodes to simulate in debug mode
static int getServerPort()
          Returns the server port number
static int getSocketTimeout()
          Returns the socket timeout value expressed in milliseconds
static void main(java.lang.String[] args)
          Here starts the whole program.
static boolean returnFloatValues()
          Asks whether we should provide the client with floating point number values
static void verifyIfOpenMosixIsActive()
          Verifies if openMosix is active (checks if /proc/hpc interface is active, ie: nodes directories are present).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAJOR

public static final java.lang.String MAJOR
software release info: major number

See Also:
Constant Field Values

MINOR

public static final java.lang.String MINOR
software release info: minor number

See Also:
Constant Field Values

BUILD

public static final java.lang.String BUILD
software release info: build number

See Also:
Constant Field Values

RELEASE

public static final java.lang.String RELEASE
software release info: release info

See Also:
Constant Field Values

HPC_DIR

public static final java.lang.String HPC_DIR
if this dir doesn't exist, we are not on an openMosix node!

See Also:
Constant Field Values

HPC_NODES_DIR

public static final java.lang.String HPC_NODES_DIR
this directory should hold a further dir for each node in the cluster

See Also:
Constant Field Values

DEFAULT_SERVER_PORT

public static final int DEFAULT_SERVER_PORT
the default server port: 7977 (in ASCII Table char 79 is 'O' and char 77 is 'M')

See Also:
Constant Field Values

serverPort

private static int serverPort
the port the server is listening on


DEFAULT_SOCKET_TIMEOUT

public static final int DEFAULT_SOCKET_TIMEOUT
the default socket timeout in milliseconds: 60000 (60 seconds)

See Also:
Constant Field Values

socketTimeout

private static int socketTimeout
default socket timeout, in milliseconds


EXIT_SUCCESS

public static final int EXIT_SUCCESS
standard exit code for succesful execution

See Also:
Constant Field Values

EXIT_FAILURE

public static final int EXIT_FAILURE
standard exit code for execution error

See Also:
Constant Field Values

debugMode

private static int debugMode
number of nodes to simulate in debug mode


daemonMode

private static boolean daemonMode
are we in daemon mode?


returnFloatValues

private static boolean returnFloatValues
Should we return float values?


logger

private static Logger logger
class-wide logger instance

Constructor Detail

OpenMosixInfoServer

public OpenMosixInfoServer()
Method Detail

main

public static void main(java.lang.String[] args)
Here starts the whole program.


getSocketTimeout

public static int getSocketTimeout()
Returns the socket timeout value expressed in milliseconds


getServerPort

public static int getServerPort()
Returns the server port number


getDebugMode

public static int getDebugMode()
Returns the number of nodes to simulate in debug mode


getDaemonMode

public static boolean getDaemonMode()
Asks whether we are in daemon mode


returnFloatValues

public static boolean returnFloatValues()
Asks whether we should provide the client with floating point number values


verifyIfOpenMosixIsActive

public static void verifyIfOpenMosixIsActive()
Verifies if openMosix is active (checks if /proc/hpc interface is active, ie: nodes directories are present). If openMosix is not active, forces program exit. This method won't be called if global DEBUG_MODE variable is set to true.


checkCommandLineValues

public static void checkCommandLineValues(java.lang.String[] argv)
Checks if command line options (entered by the user) are valid program options.