Class LogRequestor

  • All Implemented Interfaces:
    LogGetHandle, Runnable

    public class LogRequestor
    extends Thread
    implements LogGetHandle
    Extractor for parsing the response of a log request
    Since:
    28/11/14
    Author:
    roland
    • Constructor Detail

      • LogRequestor

        public LogRequestor​(org.apache.http.impl.client.CloseableHttpClient client,
                            UrlBuilder urlBuilder,
                            String containerId,
                            LogCallback callback)
        Create a helper object for requesting log entries synchronously (fetchLogs()) or asynchronously (Thread.start().
        Parameters:
        client - HTTP client to use for requesting the docker host
        urlBuilder - builder that creates docker urls
        containerId - container for which to fetch the host
        callback - callback to call for each line received