object.common
Class ExecuteCmd

java.lang.Object
  extended by object.common.ExecuteCmd

public class ExecuteCmd
extends java.lang.Object

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

r

private java.lang.Runtime r
Runtime object


p

private java.lang.Process p
Process object


commande

private java.lang.String[] commande
String[] containing the list of the commande to execute on the server


envp

private java.lang.String[] envp
String[] containing the list of the environmental variable used to lanch commandes


pathExecution

private java.lang.String pathExecution
Path of the directory in which we have to launch the commandes

Constructor Detail

ExecuteCmd

public ExecuteCmd(java.lang.String[] commande,
                  java.lang.String[] envp,
                  java.lang.String pathExecution)
Constructs a ExecuteCmd object

Parameters:
commande -
envp -
pathExecution -
Method Detail

lancer

public boolean lancer()
Launch the execution of the list of commande to execute

See Also:
Runtime, Process

stopper

public void stopper()
Stop the execution of the list of commande


getInput

public java.lang.String getInput()
Allowed to see in the log file of the server all the output of the commande line executed


getError

public void getError()
Allowed to see in the log file of the server all the errors of the commande line executed