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 and Description
    `DockerLinksServiceImporter()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `start(Vertx vertx, ServicePublisher publisher, JsonObject configuration, Future<Void> completion)` Starts the bridge.
    `void` | `stop(Vertx vertx, ServicePublisher publisher, Future<Void> completion)` Stops the bridge.

    - ### 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,
                            Future<Void> completion)

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

    - #### stop

          public void stop(Vertx vertx,
                           ServicePublisher publisher,
                           Future<Void> completion)

      Description copied from interface: `ServiceImporter`
      Stops the bridge.
      Specified by:
        `stop` in interface `ServiceImporter`
      Parameters:
        `vertx` - the vertx instance
        `publisher` - the service discovery instance
        `completion` - the future on which the bridge must report the completion of the stopping process

Copyright © 2016. All rights reserved.