|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--one.world.Main
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.
| 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 |
public static final int INITIALIZED
public static final int RUNNING
public static final int SHUTDOWN
| Method Detail |
public static int getStatus()
public static void startUp()
throws IOException
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.public static void shutDown()
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.public static void main(String[] args)
args - The arguments for this method, which are treated
as the file names of scripts to be executed when
starting the root shell.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||