Package io.fabric8.maven.docker.wait
Class LogWaitChecker
- java.lang.Object
-
- io.fabric8.maven.docker.wait.LogWaitChecker
-
- All Implemented Interfaces:
LogWaitCheckerCallback,WaitChecker
public class LogWaitChecker extends Object implements WaitChecker, LogWaitCheckerCallback
- Since:
- 25/03/2017
- Author:
- roland
-
-
Constructor Summary
Constructors Constructor Description LogWaitChecker(String logPattern, DockerAccess dockerAccess, String containerId, Logger log)
-
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 logvoidmatched()
-
-
-
Constructor Detail
-
LogWaitChecker
public LogWaitChecker(String logPattern, DockerAccess dockerAccess, String containerId, Logger log)
-
-
Method Detail
-
matched
public void matched()
- Specified by:
matchedin interfaceLogWaitCheckerCallback
-
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:
-
-