Class DockerAccessWithHcClient

  • All Implemented Interfaces:
    DockerAccess

    public class DockerAccessWithHcClient
    extends Object
    implements DockerAccess
    Implementation using Apache HttpComponents for remotely accessing the docker host.

    The design goal here is to provide only the functionality required for this plugin in order to make it as robust as possible against docker API changes (which happen quite frequently). That's also the reason, why no framework like JAX-RS or docker-java is used so that the dependencies are kept low.

    Of course, it's a bit more manual work, but it's worth the effort (as long as the Docker API functionality required is not too much).

    Since:
    26.03.14
    Author:
    roland
    • Constructor Detail

      • DockerAccessWithHcClient

        public DockerAccessWithHcClient​(String baseUrl,
                                        String certPath,
                                        int maxConnections,
                                        Logger log)
                                 throws IOException
        Create a new access for the given URL
        Parameters:
        baseUrl - base URL for accessing the docker Daemon
        certPath - used to build up a keystore with the given keys and certificates found in this directory
        maxConnections - maximum parallel connections allowed to docker daemon (if a pool is used)
        log - a log handler for printing out logging information
        Throws:
        IOException