Package de.hybris.platform.util
Class ProcessManager
- java.lang.Object
-
- de.hybris.platform.util.ProcessManager
-
public class ProcessManager extends java.lang.ObjectHelper class, for executing a specified command in a separate process with the specified arguemnts and working directory.
-
-
Constructor Summary
Constructors Constructor Description ProcessManager(java.lang.String[] cmdArray, java.lang.String workingDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()intexitValue()voidstart()java.lang.StringtoString()voidwaitFor()
-
-
-
Method Detail
-
start
public void start() throws java.io.IOException, java.lang.IllegalArgumentException- Throws:
java.io.IOExceptionjava.lang.IllegalArgumentException
-
waitFor
public void waitFor() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
destroy
public void destroy()
-
exitValue
public int exitValue()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-