runtime.daemon
Class ThreadedWrapper

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

public class ThreadedWrapper
extends java.lang.Object


Field Summary
 java.io.BufferedReader bufferedReader
           
 java.lang.String config
           
 
Constructor Summary
ThreadedWrapper()
           
 
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
 

Field Detail

bufferedReader

public java.io.BufferedReader bufferedReader

config

public java.lang.String config
Constructor Detail

ThreadedWrapper

public ThreadedWrapper()
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 start multiple threads in a JVM. This will also parse configuration file.

Parameters:
args - Arguments to this method. args[0] is URL 'String', args[1] is number of processes, args[2] is deviceName, args[3] is className ..this will be used if the URL (first arg) doesn't 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