one.world
Class Main

java.lang.Object
  |
  +--one.world.Main

public final class Main
extends Object

The main class for one.world. This class defines static methods to startup and shutdown the system. The methods defined by this class must be called with a thread that is not provided by the architecture itself.

Configuration parameters for one.world are stored in a Java properties file. By default, this file is named "one.world.config" and must be located in the current working directory. Though, the "one.world.config.name" system property can be used to specify an alternative name and directory. During startup, the properties file is read and all its properties are added to the system properties.

Version:
$Revision: 1.36 $

Field Summary
static int INITIALIZED
          The status code for the initialized state.
static int RUNNING
          The status code for the running state.
static int SHUTDOWN
          The status code for the shutdown state.
 
Method Summary
static int getStatus()
          Get the current system status.
static void main(String[] args)
          Run the root shell for one.world.
static void shutDown()
          Shut down one.world.
static void startUp()
          Start up one.world.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INITIALIZED

public static final int INITIALIZED
The status code for the initialized state.

RUNNING

public static final int RUNNING
The status code for the running state.

SHUTDOWN

public static final int SHUTDOWN
The status code for the shutdown state.
Method Detail

getStatus

public static int getStatus()
Get the current system status.
Returns:
The current system status.

startUp

public static void startUp()
                    throws IOException
Start up one.world.
Throws:
IOException - Signals an exceptional condition while accessing the configuration file or persistent environment state.
IllegalStateException - Signals that the system has already been started up or that it is has been shut down.
SecurityException - Signals that the caller does not have the system permission to start up and shut down the system.

shutDown

public static void shutDown()
Shut down one.world.
Throws:
IllegalStateException - Signals that the system has not yet been started or that it has already been shut down.
SecurityException - Signals that the caller does not have the system permission to start up and shut down the system.

main

public static void main(String[] args)
Run the root shell for one.world.
Parameters:
args - The arguments for this method, which are treated as the file names of scripts to be executed when starting the root shell.


(C) Copyright 2001 UW CSE