edu.rice.cs.util.newjvm
Class SlaveJVMRunner

java.lang.Object
  extended by edu.rice.cs.util.newjvm.SlaveJVMRunner

public final class SlaveJVMRunner
extends Object

This class is the root class for the Slave JVM. The Master JVM invokes the main(java.lang.String[]) method of this class, which is never instantiated. See the main(java.lang.String[]) method documentation for information on the command line parameters this class requires. If there is an error setting up the slave JVM before the RMI links can be established, this JVM process will exit with an error code according to the following list:

1
Invalid number of command line arguments.
2
Error deserializing remote stub
3
Error instantiating slave implementation class
If the slave JVM completes successfully, it will exit with code 0.

Version:
$Id: SlaveJVMRunner.java 4693 2008-12-08 16:39:42Z dlsmith $

Field Summary
protected static Log _log
           
static boolean SHOW_DEBUG_DIALOGS
          Whether Swing dialogs should be displayed with diagnostic information if the slave is unable to register or contact the main JVM.
 
Method Summary
static void main(String[] args)
          The main method for invoking a slave JVM.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHOW_DEBUG_DIALOGS

public static final boolean SHOW_DEBUG_DIALOGS
Whether Swing dialogs should be displayed with diagnostic information if the slave is unable to register or contact the main JVM. If false, the information will be printed to (the usually invisible) System.err. Note that the master JVM will always be notified if possible if there is a problem instantiating or registering the slave, so it can take appropriate action. This flag only affects those situations in which the master JVM cannot be contacted.

See Also:
Constant Field Values

_log

protected static final Log _log
Method Detail

main

public static void main(String[] args)
The main method for invoking a slave JVM.

Parameters:
args - Command-line parameters, of which there must be two or three. The first is the absolute path to the file containing the serialized MasterRemote stub, and the second is the fully-qualified class name of the slave JVM implementation class.