|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.carol.util.bootstrap.RemoteShell
Class RemoteShell
Provide a RMI shell access to a RJVM daemon
For the moment it's a basic (but full) rjvm shell
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 |
public static java.lang.String HOST_LOCATION
public static int PORT_NUMBER
Constructor Detail |
public RemoteShell()
Method Detail |
public static void printHelp(org.apache.commons.cli.Options cmdLineOptions)
public static void main(java.lang.String[] args)
args
- [] the arguments : l [host location] rmi host location
(Optional, default localhost) p [port number] rmi port number for
this daemon (Optional, default 9090)public static void startCommandLine(java.lang.String line)
public static void printError(java.lang.String line) throws java.lang.Exception
java.lang.Exception
public static void printOutput(java.lang.String line) throws java.lang.Exception
java.lang.Exception
public static void writeInput(java.lang.String line) throws java.lang.Exception
java.lang.Exception
public static void copyFile(java.lang.String line) throws java.lang.Exception
java.lang.Exception
- if the local file doen't existe or if a Remote
exception occurspublic static void printHelpProcess()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |