runtime.daemon
Class Wrapper

java.lang.Object
  extended by runtime.daemon.Wrapper

public class Wrapper
extends java.lang.Object


Constructor Summary
Wrapper()
           
 
Method Summary
 void execute(java.lang.String[] args)
          Executes MPJ program in a new JVM.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Wrapper

public Wrapper()
Method Detail

execute

public void execute(java.lang.String[] args)
             throws java.lang.Exception
Executes MPJ program in a new JVM. This method is invoked in main method of this class, which is started by MPJDaemon. This method can only start a new JVM but can't start multiple threads in one JVM.

Parameters:
args - Arguments to this method. args[0] is URL 'String', args[1] number of processes, args[2] is deviceName, and args[3] is rank started by this process. args[4] is className ... it will only be used if URL does not point to a JAR file.
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception