Class ContainerExecProc
java.lang.Object
hudson.Proc
org.csanchez.jenkins.plugins.kubernetes.pipeline.ContainerExecProc
- All Implemented Interfaces:
Closeable,AutoCloseable,Runnable
Handle the liveness of the processes executed in containers, wait for them to finish and process exit codes.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.Proc
Proc.LocalProc, Proc.ProcWithJenkins23271Patch, Proc.RemoteProc -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionContainerExecProc(io.fabric8.kubernetes.client.dsl.ExecWatch watch, AtomicBoolean alive, CountDownLatch finished, ByteArrayOutputStream error) Deprecated.ContainerExecProc(io.fabric8.kubernetes.client.dsl.ExecWatch watch, AtomicBoolean alive, CountDownLatch finished, OutputStream stdin, ByteArrayOutputStream error) Deprecated.ContainerExecProc(io.fabric8.kubernetes.client.dsl.ExecWatch watch, AtomicBoolean alive, CountDownLatch finished, OutputStream stdin, PrintStream printStream) ContainerExecProc(io.fabric8.kubernetes.client.dsl.ExecWatch watch, AtomicBoolean alive, CountDownLatch finished, Callable<Integer> exitCode) Deprecated. -
Method Summary
Methods inherited from class hudson.Proc
joinWithTimeout
-
Constructor Details
-
ContainerExecProc
@Deprecated public ContainerExecProc(io.fabric8.kubernetes.client.dsl.ExecWatch watch, AtomicBoolean alive, CountDownLatch finished, Callable<Integer> exitCode) Deprecated. -
ContainerExecProc
@Deprecated public ContainerExecProc(io.fabric8.kubernetes.client.dsl.ExecWatch watch, AtomicBoolean alive, CountDownLatch finished, ByteArrayOutputStream error) Deprecated. -
ContainerExecProc
@Deprecated public ContainerExecProc(io.fabric8.kubernetes.client.dsl.ExecWatch watch, AtomicBoolean alive, CountDownLatch finished, OutputStream stdin, ByteArrayOutputStream error) Deprecated. -
ContainerExecProc
public ContainerExecProc(io.fabric8.kubernetes.client.dsl.ExecWatch watch, AtomicBoolean alive, CountDownLatch finished, OutputStream stdin, PrintStream printStream)
-
-
Method Details
-
isAlive
public boolean isAlive() -
kill
- Specified by:
killin classProc- Throws:
IOExceptionInterruptedException
-
join
- Specified by:
joinin classProc- Throws:
IOExceptionInterruptedException
-
getStdout
-
getStderr
-
getStdin
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
run
public void run()
-