org.objectweb.carol.util.bootstrap
Class ProcessesDaemon

java.lang.Object
  extended byorg.objectweb.carol.util.bootstrap.ProcessesDaemon

public class ProcessesDaemon
extends java.lang.Object

Class ProcessesDaemon Provide a RMI accessible jvm daemon for boostraping a Processes. You can pass througth RMI all process configuration utilities, zip and ascii file.

Version:
1.0, 15/07/2002
Author:
Guillaume Riviere (Guillaume.Riviere@inrialpes.fr)

Field Summary
static boolean CLEAN_JVM_PROCESSES
          clean JVM processes/configuration hashtable at shudow (default TRUE) Be carful, TRUE for this variable mean one more shudow THREAD by JVM $ in the daemon
static int RJVM_PORT_NUMBER
          rjvm rmi registry port (default 9090)
 
Constructor Summary
ProcessesDaemon()
           
 
Method Summary
static void main(java.lang.String[] args)
          Main method, starting the RJVM Daemon
static void printHelp(org.apache.commons.cli.Options cmdLineOptions)
          static print help method (thaks to Jef and the JOTM team)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RJVM_PORT_NUMBER

public static int RJVM_PORT_NUMBER
rjvm rmi registry port (default 9090)


CLEAN_JVM_PROCESSES

public static boolean CLEAN_JVM_PROCESSES
clean JVM processes/configuration hashtable at shudow (default TRUE) Be carful, TRUE for this variable mean one more shudow THREAD by JVM $ in the daemon

Constructor Detail

ProcessesDaemon

public ProcessesDaemon()
Method Detail

printHelp

public static void printHelp(org.apache.commons.cli.Options cmdLineOptions)
static print help method (thaks to Jef and the JOTM team)


main

public static void main(java.lang.String[] args)
Main method, starting the RJVM Daemon

Parameters:
args - [] the arguments : c [cmd] the java jvm command name (Optional, default "java") d [true/false] clean the jvm process when they stop. (Optional, default "true") (see the public static boolean CLEAN_JVM_PROCESSES definition in this class) w [time in second] Waiting time after a jvm start (Optional, default 1 second) p [port number] rmi port number for this daemon (Optional, default 9090)