Package io.fabric8.maven.docker.wait
Class ExitCodeChecker
- java.lang.Object
-
- io.fabric8.maven.docker.wait.ExitCodeChecker
-
- All Implemented Interfaces:
WaitChecker
public class ExitCodeChecker extends Object implements WaitChecker
-
-
Constructor Summary
Constructors Constructor Description ExitCodeChecker(int exitCodeExpected, QueryService queryService, String containerId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheck()voidcleanUp()Cleanup hook which is called after the wait phase.StringgetLogLabel()Get the label to be used in the log
-
-
-
Constructor Detail
-
ExitCodeChecker
public ExitCodeChecker(int exitCodeExpected, QueryService queryService, String containerId)
-
-
Method Detail
-
check
public boolean check()
- Specified by:
checkin interfaceWaitChecker- Returns:
- true if the the check has succeed, false otherwise
-
cleanUp
public void cleanUp()
Description copied from interface:WaitCheckerCleanup hook which is called after the wait phase.- Specified by:
cleanUpin interfaceWaitChecker
-
getLogLabel
public String getLogLabel()
Description copied from interface:WaitCheckerGet the label to be used in the log- Specified by:
getLogLabelin interfaceWaitChecker- Returns:
-
-