Class AbstractContainerSupportUtil
- java.lang.Object
-
- io.openliberty.tools.common.plugins.util.AbstractContainerSupportUtil
-
- Direct Known Subclasses:
DevUtil,ServerFeatureUtil
public abstract class AbstractContainerSupportUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description AbstractContainerSupportUtil()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voiddebug(String msg)Log debugabstract voiderror(String msg, Throwable e)Log errorprotected StringexecDockerCmd(String command, int timeout, boolean throwExceptionOnError)protected StringreadStdOut(Process p)
-
-
-
Method Detail
-
debug
public abstract void debug(String msg)
Log debug- Parameters:
msg-
-
execDockerCmd
protected String execDockerCmd(String command, int timeout, boolean throwExceptionOnError)
- Parameters:
timeout- unit is seconds- Returns:
- the stdout of the command or null for no output on stdout
-
readStdOut
protected String readStdOut(Process p) throws IOException, InterruptedException
- Throws:
IOExceptionInterruptedException
-
-