edu.wpi.prc.templates.java.science
Class ScienceApplication

java.lang.Object
  extended by edu.wpi.prc.templates.java.science.ScienceApplication

public class ScienceApplication
extends java.lang.Object

The ScienceApplication class initializes and starts the XML-RPC server. It handles requests from the project client or project server, computing results for work units.

Author:
James Baldassari

Field Summary
private static int SCI_APP_PORT
           
(package private)  Server server
           
private static int SLEEP_TIME
           
private static java.lang.String STDERR_LOG_FILE
           
private static java.lang.String STDOUT_LOG_FILE
           
 
Constructor Summary
ScienceApplication()
          Default constructor.
 
Method Summary
 boolean isRunning()
           
static void main(java.lang.String[] args)
          Initializes and starts the science application.
 boolean shutdown()
          Shuts down the XML-RPC server, which will cause the main to exit.
 void start()
          Starts the XML-RPC server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SLEEP_TIME

private static final int SLEEP_TIME
See Also:
Constant Field Values

SCI_APP_PORT

private static final int SCI_APP_PORT
See Also:
Constant Field Values

STDERR_LOG_FILE

private static final java.lang.String STDERR_LOG_FILE

STDOUT_LOG_FILE

private static final java.lang.String STDOUT_LOG_FILE

server

Server server
Constructor Detail

ScienceApplication

public ScienceApplication()
Default constructor. Initializes the XML-RPC server.

Method Detail

isRunning

public boolean isRunning()
Returns:
Returns true if the science application is running, false otherwise.

start

public void start()
Starts the XML-RPC server.


shutdown

public boolean shutdown()
Shuts down the XML-RPC server, which will cause the main to exit.

Returns:
Always returns true.

main

public static void main(java.lang.String[] args)
Initializes and starts the science application.

Parameters:
args - Command-line arguments.