Object

com.deciphernow.moby

MobyNameService

Related Doc: package moby

Permalink

object MobyNameService extends NameService

Provides an implementation of the NameService interface that resolves the IP addresses of docker containers.

By implementing the NameService interface this object allows JVM processes running in the Oracle JRE/JDK to override the system name service providers for the purpose of resolving docker container names to the appropriate docker host. For example, when running docker locally (e.g., via dockerd or docker for mac) container hostnames cannot be resolved from the host computer.

Linear Supertypes
NameService, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MobyNameService
  2. NameService
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val addressPattern: Regex

    Permalink

    Defines the address pattern for matching an IPv4 address.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val defaultDockerDomain: String

    Permalink

    Defines the default domain for docker containers.

  8. val defaultDockerHost: String

    Permalink

    Defines the default docker host IP address.

  9. val dockerBytes: Array[Byte]

    Permalink

    Defines the byte representation of the docker host IP address.

  10. val dockerDomain: String

    Permalink

    Defines the docker domain for docker containers.

  11. val dockerHost: String

    Permalink

    Defines the docker host IP address.

  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def getBytes(address: String): Array[Byte]

    Permalink

    Returns the bytes for an address.

    Returns the bytes for an address.

    address

    the address

    returns

    the bytes

  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def getEnv(variable: String, default: String): String

    Permalink

    Returns the value of an environment variable if set; otherwise, a default value

    Returns the value of an environment variable if set; otherwise, a default value

    variable

    the variable

    default

    the default value

    returns

    the value if set; otherwise, the default value

  18. def getHostByAddr(bytes: Array[Byte]): String

    Permalink

    Returns the hostname that corresponds to an address.

    Returns the hostname that corresponds to an address.

    bytes

    the address

    returns

    the hostname

    Definition Classes
    MobyNameService → NameService
    Exceptions thrown

    UnknownHostException if the address does not correspond to a hostname

  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def lookupAllHostAddr(host: String): Array[InetAddress]

    Permalink

    Returns the addresses that resolve for a hostname.

    Returns the addresses that resolve for a hostname.

    host

    the hostname

    returns

    the addresses

    Definition Classes
    MobyNameService → NameService
    Exceptions thrown

    UnknownHostException if the hostname does not resolve

  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from NameService

Inherited from AnyRef

Inherited from Any

Ungrouped