|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectobject.common.ExecuteCmd
public class ExecuteCmd
Description
Allow to execute commande and the server system
Infos : KLB - IPMC - 08/2003
| Field Summary | |
|---|---|
private java.lang.String[] |
commande
String[] containing the list of the commande to execute on the server |
private java.lang.String[] |
envp
String[] containing the list of the environmental variable used to lanch commandes |
private java.lang.Process |
p
Process object |
private java.lang.String |
pathExecution
Path of the directory in which we have to launch the commandes |
private java.lang.Runtime |
r
Runtime object |
| Constructor Summary | |
|---|---|
ExecuteCmd(java.lang.String[] commande,
java.lang.String[] envp,
java.lang.String pathExecution)
Constructs a ExecuteCmd object |
|
| Method Summary | |
|---|---|
void |
getError()
Allowed to see in the log file of the server all the errors of the commande line executed |
java.lang.String |
getInput()
Allowed to see in the log file of the server all the output of the commande line executed |
boolean |
lancer()
Launch the execution of the list of commande to execute |
void |
stopper()
Stop the execution of the list of commande |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.Runtime r
private java.lang.Process p
private java.lang.String[] commande
private java.lang.String[] envp
private java.lang.String pathExecution
| Constructor Detail |
|---|
public ExecuteCmd(java.lang.String[] commande,
java.lang.String[] envp,
java.lang.String pathExecution)
commande - envp - pathExecution - | Method Detail |
|---|
public boolean lancer()
Runtime,
Processpublic void stopper()
public java.lang.String getInput()
public void getError()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||