Package 

Class ContainerLogWatcher


  • 
    public final class ContainerLogWatcher
    
                        

    Encapsulates 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 the docker logs-command.

    • Constructor Summary

      Constructors 
      Constructor Description
      ContainerLogWatcher(Project project, DockerClient dockerClient)
    • Method Summary

      Modifier and Type Method Description
      final ContainerLogWatcher.Handle start(String containerId) Starts the docker logs-command
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ContainerLogWatcher

        ContainerLogWatcher(Project project, DockerClient dockerClient)