Package cz.xtf.core.openshift
Class PodShell
- java.lang.Object
-
- cz.xtf.core.openshift.PodShell
-
public class PodShell extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classPodShell.StateExecListener
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PodShellOutputexecute(String... commands)PodShellOutputexecuteWithBash(String command)PodShellOutputexecuteWithRetry(int retryCount, int retryDelay, String... commands)PodShellOutputexecuteWithRetry(String... commands)Executes command(s) on the pod with retry mechanism in case of failure.
-
-
-
Method Detail
-
executeWithBash
public PodShellOutput executeWithBash(String command)
-
execute
public PodShellOutput execute(String... commands)
-
executeWithRetry
public PodShellOutput executeWithRetry(int retryCount, int retryDelay, String... commands)
-
executeWithRetry
public PodShellOutput executeWithRetry(String... commands)
Executes command(s) on the pod with retry mechanism in case of failure. Up to 3 attempts are made with a 5-second delay between each attempt.
-
-