Class ContainerLogWatcher
-
- All Implemented Interfaces:
public final class ContainerLogWatcherEncapsulates the functionality execute
docker logs-command for a running container. The container logs are logged using the Project.getLogger inside a new Thread (so start does not block). Calling code has to ensure Handle.close is called to actually finish thedocker logs-command.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceContainerLogWatcher.HandleEncapsulates the actually ContainerLogWatcher closing.
-
Constructor Summary
Constructors Constructor Description ContainerLogWatcher(Project project, DockerClient dockerClient)
-
Method Summary
Modifier and Type Method Description final ContainerLogWatcher.Handlestart(String containerId)Starts the docker logs-command-
-
Method Detail
-
start
final ContainerLogWatcher.Handle start(String containerId)
Starts the
docker logs-command- Parameters:
containerId- the id of the container- Returns:
a Handle the has to be used to close this ContainerLogWatcher and actually end the
docker logs-command.
-
-
-
-