public class OneShotStartupCheckStrategy extends StartupCheckStrategy
StartupCheckStrategy
intended for use with containers that only run briefly and
exit of their own accord. As such, success is deemed to be when the container has stopped with exit code 0.StartupCheckStrategy.StartupStatus
Constructor and Description |
---|
OneShotStartupCheckStrategy() |
Modifier and Type | Method and Description |
---|---|
StartupCheckStrategy.StartupStatus |
checkStartupState(com.github.dockerjava.api.DockerClient dockerClient,
String containerId) |
getCurrentState, waitUntilStartupSuccessful
public StartupCheckStrategy.StartupStatus checkStartupState(com.github.dockerjava.api.DockerClient dockerClient, String containerId)
checkStartupState
in class StartupCheckStrategy
Copyright © 2017. All rights reserved.