Class CloseableProcess
- java.lang.Object
-
- java.lang.Process
-
- fish.payara.arquillian.container.payara.process.CloseableProcess
-
- All Implemented Interfaces:
AutoCloseable
public class CloseableProcess extends Process implements AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description CloseableProcess(Process process)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voiddestroy()ProcessdestroyForcibly()intexitValue()InputStreamgetErrorStream()InputStreamgetInputStream()OutputStreamgetOutputStream()ProcessgetWrapped()booleanisAlive()intwaitFor()booleanwaitFor(long timeout, TimeUnit unit)-
Methods inherited from class java.lang.Process
children, descendants, info, onExit, pid, supportsNormalTermination, toHandle
-
-
-
-
Constructor Detail
-
CloseableProcess
public CloseableProcess(Process process)
-
-
Method Detail
-
getWrapped
public Process getWrapped()
-
getInputStream
public InputStream getInputStream()
- Specified by:
getInputStreamin classProcess
-
getOutputStream
public OutputStream getOutputStream()
- Specified by:
getOutputStreamin classProcess
-
getErrorStream
public InputStream getErrorStream()
- Specified by:
getErrorStreamin classProcess
-
waitFor
public int waitFor() throws InterruptedException- Specified by:
waitForin classProcess- Throws:
InterruptedException
-
waitFor
public boolean waitFor(long timeout, TimeUnit unit) throws InterruptedException- Overrides:
waitForin classProcess- Throws:
InterruptedException
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
destroyForcibly
public Process destroyForcibly()
- Overrides:
destroyForciblyin classProcess
-
-