|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface RemoteProcessesManager
Provide a Process Manager for
boostraping Process and send file to a process directory Thie class extends a
remote interface for RMI calls
Method Summary | |
java.util.Hashtable |
getAllProcess()
Get the all Process id with there command line |
java.lang.String |
getProcessCommand(java.lang.String id)
Get the Process command line |
java.lang.String |
getProcessDirectory(java.lang.String id)
Get the Process directory |
int |
getProcessExitValue(java.lang.String id)
Test if a Process is not alive the exit value |
void |
killAllProcesses()
Kill all processes and remove all process id and configuration |
void |
killProcess(java.lang.String id)
Kill a process (if existe) and remove it's process id and configuration |
boolean |
pingProcess(java.lang.String id)
Test if a Process is always alive |
java.lang.String |
readProcessError(java.lang.String id)
get the rjvm ErrorStream |
java.lang.String |
readProcessOutput(java.lang.String id)
get the rproc OutputStream |
void |
sendFile(java.lang.String dirName,
java.lang.String fileName,
byte[] b)
Send a file to a directory (FileImputStream/FileOutputStream format) this method build a directory in the current directory if the directory does not exite. |
java.lang.String |
startJVM(JVMConfiguration jvmConf,
java.lang.String[] envp)
Start a jvm process on the remote host in a tmp directory |
java.lang.String |
startJVM(JVMConfiguration jvmConf,
java.lang.String[] envp,
java.lang.String processDir)
Start a jvm process on the remote host |
void |
startJVM(JVMConfiguration jvmConf,
java.lang.String[] envp,
java.lang.String processDir,
java.lang.String id)
Start a jvm process on the remote host |
java.lang.String |
startProcess(java.lang.String processLine,
java.lang.String[] envp)
Start a process on the remote host in a tmp directory |
java.lang.String |
startProcess(java.lang.String processLine,
java.lang.String[] envp,
java.lang.String processDir)
Start a process on the remote host |
void |
startProcess(java.lang.String processLine,
java.lang.String[] envp,
java.lang.String processDir,
java.lang.String id)
Start a process on the remote host |
void |
stop()
Stop the damemon and kill all the process |
void |
writeProcessInput(java.lang.String id,
java.lang.String s)
send a String to the rjvm inputStream |
Method Detail |
public java.lang.String startJVM(JVMConfiguration jvmConf, java.lang.String[] envp) throws ProcessException, java.rmi.RemoteException
ProcessException
- if an exception occurs at bootstrapting
java.rmi.RemoteException
public java.lang.String startJVM(JVMConfiguration jvmConf, java.lang.String[] envp, java.lang.String processDir) throws ProcessException, java.rmi.RemoteException
ProcessException
- if an exception occurs at bootstrapting
java.rmi.RemoteException
public void startJVM(JVMConfiguration jvmConf, java.lang.String[] envp, java.lang.String processDir, java.lang.String id) throws ProcessException, java.rmi.RemoteException
RProcessException
- if an exception occurs at bootstrapting
ProcessException
java.rmi.RemoteException
public java.lang.String startProcess(java.lang.String processLine, java.lang.String[] envp) throws ProcessException, java.rmi.RemoteException
ProcessException
- if an exception occurs at bootstrapting
java.rmi.RemoteException
public java.lang.String startProcess(java.lang.String processLine, java.lang.String[] envp, java.lang.String processDir) throws ProcessException, java.rmi.RemoteException
ProcessException
- if an exception occurs at bootstrapting
java.rmi.RemoteException
public void startProcess(java.lang.String processLine, java.lang.String[] envp, java.lang.String processDir, java.lang.String id) throws ProcessException, java.rmi.RemoteException
RProcessException
- if an exception occurs at bootstrapting
ProcessException
java.rmi.RemoteException
public void killProcess(java.lang.String id) throws ProcessException, java.rmi.RemoteException
id
- the Process id
ProcessException
- if the id doesn't existe
java.rmi.RemoteException
public void killAllProcesses() throws java.rmi.RemoteException
java.rmi.RemoteException
public boolean pingProcess(java.lang.String id) throws ProcessException, java.rmi.RemoteException
id
- the Process String id
ProcessException
java.rmi.RemoteException
public int getProcessExitValue(java.lang.String id) throws ProcessException, java.rmi.RemoteException
id
- the jvm id
ProcessException
- if - the id doen'st existe (with the
CLEAN_Process_PROCESSES=true for example) - teh jvm with this id
is not yet terminated
java.rmi.RemoteException
public java.lang.String getProcessCommand(java.lang.String id) throws ProcessException, java.rmi.RemoteException
ProcessException
- if: - The Process id doesn't exist - The Process
process is stop
java.rmi.RemoteException
public java.lang.String getProcessDirectory(java.lang.String id) throws ProcessException, java.rmi.RemoteException
ProcessException
- if: - The Process id doesn't exist - The Process
process is stop
java.rmi.RemoteException
public java.util.Hashtable getAllProcess() throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String readProcessOutput(java.lang.String id) throws ProcessException, java.rmi.RemoteException
id
- the proc id
ProcessException
- if - the id doen'st existe
java.rmi.RemoteException
public java.lang.String readProcessError(java.lang.String id) throws ProcessException, java.rmi.RemoteException
id
- the jvm id
ProcessException
- if - the id doen'st existe
java.rmi.RemoteException
public void writeProcessInput(java.lang.String id, java.lang.String s) throws ProcessException, java.rmi.RemoteException
s
- String to send to the InputStreamid
- the jvm id
ProcessException
- if - the id doen'st existe
java.rmi.RemoteException
public void sendFile(java.lang.String dirName, java.lang.String fileName, byte[] b) throws java.rmi.RemoteException
java.rmi.RemoteException
public void stop() throws java.rmi.RemoteException
java.rmi.RemoteException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |