Package io.vertx.servicediscovery.docker

## Class DockerLinksServiceImporter

- java.lang.Object
- - io.vertx.servicediscovery.docker.DockerLinksServiceImporter

- All Implemented Interfaces:
    `ServiceImporter`

      public class DockerLinksServiceImporter
      extends Object
      implements ServiceImporter

  A discovery bridge analyzing environment variables to detect Docker links. It imports found links as services in the discovery infrastructure. As they are mapped from environment variable the set of imported service does not change after the initialization.
  Author:
    Clement Escoffier

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `DockerLinksServiceImporter()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `close​(Handler<Void> completionHandler)` | Closes the importer
    `void` | `start​(Vertx vertx, ServicePublisher publisher, JsonObject configuration, Promise<Void> completion)` | Starts the importer.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DockerLinksServiceImporter

          public DockerLinksServiceImporter()

  - ### Method Detail

    - #### start

          public void start​(Vertx vertx,
                            ServicePublisher publisher,
                            JsonObject configuration,
                            Promise<Void> completion)

      Description copied from interface: `ServiceImporter`
      Starts the importer.
      Specified by:
        `start` in interface `ServiceImporter`
      Parameters:
        `vertx` - the vertx instance
        `publisher` - the service publisher instance
        `configuration` - the bridge configuration if any
        `completion` - a future on which the bridge must report the completion of the starting

    - #### close

          public void close​(Handler<Void> completionHandler)

      Description copied from interface: `ServiceImporter`
      Closes the importer
      Specified by:
        `close` in interface `ServiceImporter`
      Parameters:
        `completionHandler` - the handle to be notified when importer is closed, may be `null`