com.sun.enterprise.admin.cli
Class CLIProcessExecutor

java.lang.Object
  extended by com.sun.enterprise.admin.cli.CLIProcessExecutor

public class CLIProcessExecutor
extends java.lang.Object

CLIProcessExecutor A simple process executor class that is used by CLI.

Author:
jane.young@sun.com

Field Summary
private  java.lang.Process process
           
 
Constructor Summary
CLIProcessExecutor()
           
 
Method Summary
 void execute(java.lang.String name, java.lang.String[] cmd, boolean wait)
          This method invokes the runtime exec
 int exitValue()
          return the exit value of this process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

process

private java.lang.Process process
Constructor Detail

CLIProcessExecutor

public CLIProcessExecutor()
Method Detail

execute

public void execute(java.lang.String name,
                    java.lang.String[] cmd,
                    boolean wait)
             throws java.lang.Exception
This method invokes the runtime exec

Parameters:
cmd - the command to execute
wait - if true, wait for process to end.
Throws:
java.lang.Exception

exitValue

public int exitValue()
return the exit value of this process. if process is null, then there is no process running therefore the return value is 0.



Copyright © 2012 GlassFish Community. All Rights Reserved.