org.objectweb.carol.util.bootstrap
Class RemoteShell

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

public class RemoteShell
extends java.lang.Object

Class RemoteShell Provide a RMI shell access to a RJVM daemon For the moment it's a basic (but full) rjvm shell

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

Field Summary
static java.lang.String HOST_LOCATION
          proc host location
static int PORT_NUMBER
          proc rmi registry port (default 9090)
 
Constructor Summary
RemoteShell()
           
 
Method Summary
static void copyFile(java.lang.String line)
          Copy a File (jar or ascii) to remote host in remote directory
static void main(java.lang.String[] args)
          Main method, starting the RJVM Daemon
static void printError(java.lang.String line)
          Print error put ouf the process
static void printHelp(org.apache.commons.cli.Options cmdLineOptions)
          static print help method (thaks to Jef and the JOTM team)
static void printHelpProcess()
           
static void printOutput(java.lang.String line)
          Print output put ouf the process
static void startCommandLine(java.lang.String line)
           
static void writeInput(java.lang.String line)
          Write an imput in the process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HOST_LOCATION

public static java.lang.String HOST_LOCATION
proc host location


PORT_NUMBER

public static int PORT_NUMBER
proc rmi registry port (default 9090)

Constructor Detail

RemoteShell

public RemoteShell()
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 : l [host location] rmi host location (Optional, default localhost) p [port number] rmi port number for this daemon (Optional, default 9090)

startCommandLine

public static void startCommandLine(java.lang.String line)

printError

public static void printError(java.lang.String line)
                       throws java.lang.Exception
Print error put ouf the process

Throws:
java.lang.Exception

printOutput

public static void printOutput(java.lang.String line)
                        throws java.lang.Exception
Print output put ouf the process

Throws:
java.lang.Exception

writeInput

public static void writeInput(java.lang.String line)
                       throws java.lang.Exception
Write an imput in the process

Throws:
java.lang.Exception

copyFile

public static void copyFile(java.lang.String line)
                     throws java.lang.Exception
Copy a File (jar or ascii) to remote host in remote directory

Throws:
java.lang.Exception - if the local file doen't existe or if a Remote exception occurs

printHelpProcess

public static void printHelpProcess()