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
ConstructorDescriptionContainerExecProc
(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:
kill
in classProc
- Throws:
IOException
InterruptedException
-
join
- Specified by:
join
in classProc
- Throws:
IOException
InterruptedException
-
getStdout
-
getStderr
-
getStdin
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
run
public void run()
-